Link Search Menu Expand Document

Constructor: botCommand

Back to constructors index

Describes a bot command that can be used in a chat

Attributes:

NameTypeRequiredDescription
commandstringYes/command name
descriptionstringYesDescription of the command

Type: BotCommand

Example:

$botCommand = ['_' => 'botCommand', 'command' => 'string', 'description' => 'string'];