MadelineProtoDocs/old_docs/API_docs_v14/constructors/botCommand.md

823 B

title description image
botCommand Describes a bot command that can be used in a chat https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: botCommand

Back to constructors index

Describes a bot command that can be used in a chat

Attributes:

Name Type Required Description
command string Yes /command name
description string Yes Description of the command

Type: BotCommand

Example:

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

Or, if you're into Lua:

botCommand={_='botCommand', command='string', description='string'}