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
Equivalent with using
BotClient.onDeletedBusinessMessage(FilterExecutor, UpdateHandler)- Since:
- 1.2.0
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionClass<? extends CustomFilter> Custom filter class for advanced filtering of deleted business message events.intPriority order for handler registration and execution.
- 
Element Details- 
filterClass<? extends CustomFilter> filterCustom 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 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. 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
 
 
-