MadelineProtoDocs/docs/API_docs/constructors/botInfo.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

967 B

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

Constructor: botInfo

Back to constructors index

Bot info

Attributes:

Name Type Required Description
user_id int Yes User ID
description string Yes Description
commands Array of BotCommand Yes Commands

Type: BotInfo

Example:

$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]];

PWRTelegram json-encoded version:

{"_": "botInfo", "user_id": int, "description": "string", "commands": [BotCommand]}

Or, if you're into Lua:

botInfo={_='botInfo', user_id=int, description='string', commands={BotCommand}}