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 TypeMethodDescriptionvoidexecute(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:CallbackQueryCommandExecutes the command with the provided callback query and data.- Specified by:
executein interfaceCallbackQueryCommand<MessageIdsCommandCallbackDataDTO>- Parameters:
callbackQuery- the callback query containing the commandcallbackData- the data associated with the command
-