Annotation Type TriggerId


  • @Retention(SOURCE)
    @Target(FIELD)
    public @interface TriggerId
    A field of type String annotated with this annotation used to inject the trigger unique id. The injection is setter based so a corresponding setter in the type is mandatory TriggerId.

    This annotation can only be used when the BotCommand has commandType set as Trigger.

    exactly one field needs to be annotated when BotCommand annotation is present on the type.