annotation PrivateParlorXT::RespondsTo

Overview

Annotation for Telegram command handlers

Keys and Values:

command : A StringLiteral or an array of StringLiteral containing the text that will activate the handler when the text follows a forward slash '/'. If using an array of StringLiteral to define aliases, the first element in the array will be used for CommandDescriptions and registering the command description with BotFather.

config : String, the name of the Config member that enables this handler. Handlers should be configurable, though a value is not required here to compile or be used in the program.

Defined in:

private-parlor-xt/handlers/command_handler.cr