Annotation Interface BotOrder
Defines the execution order of a bot handler method.
Lower values have higher priority. Defaults to
Integer.MAX_VALUE.
Use this annotation alongside handler annotations like @BotCommand, @BotText, etc.
@BotCommand("/start")
@BotOrder(1)
public void handleStart() { ... }
- Since:
- 0.0.1
- Author:
- Islom Mirsaburov
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe order value; lower values indicate higher priority.
-
Element Details
-
value
int valueThe order value; lower values indicate higher priority.- Returns:
- the order value, defaults to
Integer.MAX_VALUE
- Default:
2147483647
-