Annotation Interface BotOrder


@Target(METHOD) @Retention(RUNTIME) @Documented public @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 Elements
    Modifier and Type
    Optional Element
    Description
    int
    The order value; lower values indicate higher priority.
  • Element Details

    • value

      int value
      The order value; lower values indicate higher priority.
      Returns:
      the order value, defaults to Integer.MAX_VALUE
      Default:
      2147483647