Class RejectPostCallbackQueryCommand
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.service.command.RejectPostCallbackQueryCommand
- All Implemented Interfaces:
CallbackQueryCommand<MessageIdsCommandCallbackDataDTO>
,PostControlsCallbackQueryCommand
@Service("/rejectpost")
public class RejectPostCallbackQueryCommand
extends Object
implements PostControlsCallbackQueryCommand
Rejects a post by deleting it 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
-
RejectPostCallbackQueryCommand
public RejectPostCallbackQueryCommand()
-
-
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
-