Class ApprovePostCallbackQueryCommand
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.service.command.ApprovePostCallbackQueryCommand
- All Implemented Interfaces:
CallbackQueryCommand<MessageIdsCommandCallbackDataDTO>
,PostControlsCallbackQueryCommand
@Service("/approvepost")
public class ApprovePostCallbackQueryCommand
extends Object
implements PostControlsCallbackQueryCommand
Approves a post by saving its message IDs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, MessageIdsCommandCallbackDataDTO callbackData) Executes the command with the provided callback query and data.
-
Constructor Details
-
ApprovePostCallbackQueryCommand
public ApprovePostCallbackQueryCommand()
-
-
Method Details
-
execute
public void execute(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, MessageIdsCommandCallbackDataDTO callbackData) Description copied from interface:CallbackQueryCommand
Executes the command with the provided callback query and data.- Specified by:
execute
in interfaceCallbackQueryCommand<MessageIdsCommandCallbackDataDTO>
- Parameters:
callbackQuery
- the callback query containing the commandcallbackData
- the data associated with the command
-