Annotation Interface BusinessConnectionHandler
@Retention(RUNTIME)
@Target(METHOD)
@Repeatable(BusinessConnectionHandlers.class)
public @interface BusinessConnectionHandler
Annotation for handling business connection events in a declarative manner.
 Designed specifically for handling events related to Telegram Business account connections,
 providing monitoring capabilities for connection status changes, authorization events,
 and business account management operations.
 This annotation enables structured handling of business connection lifecycle events with
 custom filtering capabilities for processing connection establishment, updates,
 and termination events in business communication contexts.
 
 Equivalent with using 
BotClient.onBusinessConnection(FilterExecutor, UpdateHandler)- Since:
- 1.2.0
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionClass<? extends CustomFilter> Custom filter class for advanced filtering of business connection events.intPriority order for handler registration and execution.
- 
Element Details- 
filterClass<? extends CustomFilter> filterCustom filter class for advanced filtering of business connection events. Use this to implement custom logic for determining which connection events should trigger this handler, such as filtering by business account type, connection status, authorization scope, service categories, or other business-specific connection criteria.- Returns:
- class implementing CustomFilterinterface
 - Default:
- io.github.natanimn.telebof.filters.DefaultCustomFilter.class
 
- 
priorityint priorityPriority 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
 
 
-