Class PostControlsMessageTextEditor

java.lang.Object
io.github.yvasyliev.telegramforwarderbot.aspect.PostControlsMessageTextEditor

@Component public class PostControlsMessageTextEditor extends Object
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 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 command
      callbackData - the data associated with the command