1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 08:16:54 +01:00
MadelineProto/docs/TD_docs/constructors/botInfo.md
2017-07-23 16:11:02 +02:00

943 B

title description
botInfo Provides information about bot and command supported by him

Constructor: botInfo

Back to constructors index

Provides information about bot and command supported by him

Attributes:

Name Type Required Description
description string Yes Big description shown in user info page
commands Array of botCommand Yes List of commands cupported by bot

Type: BotInfo

Example:

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

PWRTelegram json-encoded version:

{"_":"botInfo","description":"string","commands":["botCommand"]}

Or, if you're into Lua:

botInfo={_='botInfo', description=string, commands={botCommand}, }