Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Name of the command without the leading slash. Name string // Short description of the command ShortLine string // Hidden enables commands to be hidden from the /help output, such as // Telegram's built-in commands and easter eggs. Hidden bool // Run runs the command. Run func(context.Context, *bot.Bot, *telegram.Message) }
A Command is an implementation of a bot command.
Click to show internal directories.
Click to hide internal directories.