MadelineProtoDocs/old_docs/API_docs_v38/constructors/botInfo.md
2019-12-27 17:48:04 +01:00

1.1 KiB

title description image
botInfo Info about bots (available bot commands, etc) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: botInfo

Back to constructors index

Info about bots (available bot commands, etc)

Attributes:

Name Type Required Description
user_id int Yes ID of the bot
version int Yes Version
share_text string Yes Share text
description string Yes Description of the bot
commands Array of BotCommand Yes Commands

Type: BotInfo

Example:

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

Or, if you're into Lua:

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