mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.3 KiB
1.3 KiB
title | description | nav_exclude | image |
---|---|---|---|
botInfo | Info about bots (available bot commands, etc) | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: botInfo
Info about bots (available bot commands, etc)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
user_id | long | Optional | ID of the bot |
description | string | Optional | Description of the bot |
description_photo | Photo | Optional | Description photo |
description_document | Document | Optional | Description animation in MPEG4 format |
commands | Array of BotCommand | Optional | Bot commands that can be used in the chat |
menu_button | BotMenuButton | Optional | Indicates the action to execute when pressing the in-UI menu button for bots |
Type: BotInfo
Example:
$botInfo = ['_' => 'botInfo', 'user_id' => long, 'description' => 'string', 'description_photo' => Photo, 'description_document' => Document, 'commands' => [BotCommand, BotCommand], 'menu_button' => BotMenuButton];