MadelineProtoDocs/old_docs/API_docs_v68/constructors/botCommand.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00: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'}