MadelineProtoDocs/old_docs/API_docs_v91/constructors/botCommand.md
2019-03-08 13:49:23 +01:00

859 B

title description image
botCommand Bot command https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: botCommand

Back to constructors index

Bot command

Attributes:

Name Type Required Description
command string Yes Command
description string Yes Description

Type: BotCommand

Example:

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

PWRTelegram json-encoded version:

{"_": "botCommand", "command": "string", "description": "string"}

Or, if you're into Lua:

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