Class PostControlsMessageTextEditor
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.aspect.PostControlsMessageTextEditor
Aspect that edits the text of the post controls message after executing a callback query command.
It updates the message text based on the command executed and handles specific Telegram API exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
editPostControlsMessageText
(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, AbstractCommandCallbackDataDTO callbackData) After returning advice that edits the post controls message text after executing a callback query command.
-
Constructor Details
-
PostControlsMessageTextEditor
public PostControlsMessageTextEditor()
-
-
Method Details
-
editPostControlsMessageText
public void editPostControlsMessageText(org.telegram.telegrambots.meta.api.objects.CallbackQuery callbackQuery, AbstractCommandCallbackDataDTO callbackData) After returning advice that edits the post controls message text after executing a callback query command.- Parameters:
callbackQuery
- the callback query that triggered the commandcallbackData
- the data associated with the command
-