Interface CallbackQueryCommand<T extends AbstractCommandCallbackDataDTO>
- Type Parameters:
T
- the type of command callback data
- All Known Subinterfaces:
PostControlsCallbackQueryCommand
- All Known Implementing Classes:
ApprovePostCallbackQueryCommand
,RejectPostCallbackQueryCommand
,RejectTextCallbackQueryCommand
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface CallbackQueryCommand<T extends AbstractCommandCallbackDataDTO>
Interface for handling callback queries with specific command data.
-
Method Summary
-
Method Details
-
execute
@PreAuthorize("hasRole(\'ADMIN\')") void execute(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, T callbackData) Executes the command with the provided callback query and data.- Parameters:
callbackQuery
- the callback query containing the commandcallbackData
- the data associated with the command
-