Annotation Interface BotText


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface BotText
Maps a handler method to one or more plain-text Telegram messages. The annotated method is invoked when an incoming message's text matches any of the specified strings. An empty value array matches all text messages 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 exact text strings that trigger this handler.
  • Element Details

    • value

      String[] value
      The exact text strings that trigger this handler.
      Returns:
      an array of text values to match against incoming message text
      Default:
      {}