java.lang.Object
io.github.yvasyliev.telegramforwarderbot.util.Pointcuts

public class Pointcuts extends Object
Defines pointcuts for AOP in the Telegram Forwarder Bot application.

This class contains pointcuts that match specific method executions related to handling Telegram events, executing commands, and sending messages.

  • Constructor Details

    • Pointcuts

      public Pointcuts()
  • Method Details

    • handleMessageEvent

      public void handleMessageEvent()
      Pointcut for handling Telegram message events. Matches the execution of the TelegramEventHandler.handle(BotApiObject) method forMessage objects.
    • handleCallbackQueryEvent

      public void handleCallbackQueryEvent()
      Pointcut for handling Telegram callback query events. Matches the execution of the TelegramEventHandler.handle(BotApiObject) method for CallbackQuery objects.
    • executeCallbackQueryCommand

      public void executeCallbackQueryCommand()
      Pointcut for executing a command that handles a Telegram message. Matches the execution of the CallbackQueryCommand.execute(CallbackQuery, AbstractCommandCallbackDataDTO) method.
    • sendPost

      public void sendPost()
      Pointcut for sending a post message. Matches the execution of methods in the sender package that send a single message.
    • sendMediaGroup

      public void sendMediaGroup()
      Pointcut for sending a media group. Matches the execution of methods in the sender package that send a list of messages.
    • executePostControlsCallbackQueryCommand

      public void executePostControlsCallbackQueryCommand()