Annotation Interface DeletedBusinessMessageHandler


@Retention(RUNTIME) @Target(METHOD) @Repeatable(DeletedBusinessMessageHandlers.class) public @interface DeletedBusinessMessageHandler
Annotation for handling deleted business message events in a declarative manner. Designed specifically for handling events when a business message is deleted, typically in the context of Telegram Business accounts and their conversations.

Equivalent with using BotClient.onDeletedBusinessMessage(FilterExecutor, UpdateHandler)
Since:
1.2.0
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends CustomFilter>
    Custom filter class for advanced filtering of deleted business message events.
    int
    Priority order for handler registration and execution.
  • Element Details

    • filter

      Class<? extends CustomFilter> filter
      Custom filter class for advanced filtering of deleted business message events. Use this to implement custom logic for determining which message deletion events should trigger this handler, such as filtering by chat type, message content, business account characteristics, or other application-specific criteria.
      Returns:
      class implementing CustomFilter interface
      Default:
      io.github.natanimn.telebof.filters.DefaultCustomFilter.class
    • priority

      int priority
      Priority order for handler registration and execution. Handlers with lower priority numbers are registered and executed before those with higher numbers. This allows controlling the order of handler processing when multiple handlers could match the same deletion event.
      Returns:
      priority integer value (lower = earlier execution)
      Default:
      0