Annotation Interface RemovedChatBoostHandler


@Retention(RUNTIME) @Target(METHOD) @Repeatable(RemovedChatBoostHandlers.class) public @interface RemovedChatBoostHandler
Annotation for handling removed chat boost events in a declarative manner. Designed specifically for handling events when chat boosts are removed or expire, providing monitoring capabilities for boost status changes and community engagement metrics. This annotation enables structured handling of boost removal events with custom filtering capabilities for processing boost expiration, voluntary removals, and tracking community support patterns over time.

Equivalent with using BotClient.onRemovedChatBoost(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 removed chat boost events.
    int
    Priority order for handler registration and execution.
  • Element Details

    • filter

      Class<? extends CustomFilter> filter
      Custom filter class for advanced filtering of removed chat boost events. Use this to implement custom logic for determining which boost removal events should trigger this handler, such as filtering by boost duration, boost level, removal reason, user demographics, or community impact metrics.
      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.
      Returns:
      priority integer value (lower = earlier execution)
      Default:
      0