Class RejectTextCallbackQueryCommand
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.service.command.RejectTextCallbackQueryCommand
- All Implemented Interfaces:
CallbackQueryCommand<MessageIdsCommandCallbackDataDTO>
,PostControlsCallbackQueryCommand
@Service("/rejecttext")
public class RejectTextCallbackQueryCommand
extends Object
implements PostControlsCallbackQueryCommand
Rejects a text post by removing caption from the approved posts.
-
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
-
RejectTextCallbackQueryCommand
public RejectTextCallbackQueryCommand()
-
-
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
-