Class RejectPostCallbackQueryCommand
java.lang.Object
io.github.yvasyliev.forwarder.telegram.bot.service.command.RejectPostCallbackQueryCommand
- All Implemented Interfaces:
CallbackQueryCommand<CommandCallbackData>, 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 TypeMethodDescriptionvoidexecute(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, CommandCallbackData callbackData) Executes the command with the provided callback query and data.
-
Constructor Details
-
RejectPostCallbackQueryCommand
-
-
Method Details
-
execute
public void execute(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, CommandCallbackData callbackData) Description copied from interface:CallbackQueryCommandExecutes the command with the provided callback query and data.- Specified by:
executein interfaceCallbackQueryCommand<CommandCallbackData>- Parameters:
callbackQuery- the callback query containing the commandcallbackData- the data associated with the command
-