Annotation Interface BotCallbackQuery


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface BotCallbackQuery
Maps a handler method to one or more Telegram callback query data values. The annotated method is invoked when an incoming callback query's data field matches any of the specified strings. An empty value array matches all callback queries not handled by a more specific mapping.
Since:
0.0.1
Author:
Islom Mirsaburov
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The callback query data strings that trigger this handler.
  • Element Details

    • value

      String[] value
      The callback query data strings that trigger this handler.
      Returns:
      an array of data strings to match against incoming callback queries
      Default:
      {}