MadelineProtoDocs/old_docs/API_docs_v30/constructors/botCommand.md
2020-06-16 17:50:25 +02:00

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'}