Constructor: botInfo
Info about bots (available bot commands, etc)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
has_preview_medias | Bool | Optional | If set, the bot has some preview medias for the configured Main Mini App, see here » for more info on Main Mini App preview medias. |
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 |
privacy_policy_url | string | Optional | The HTTP link to the privacy policy of the bot. If not set, then the /privacy command must be used, if supported by the bot (i.e. if it’s present in the commands vector). If it isn’t supported, then https://telegram.org/privacy-tpa must be opened, instead. |
app_settings | BotAppSettings | Optional | Mini app » settings |
verifier_settings | BotVerifierSettings | Optional |
Type: BotInfo
Example:
$botInfo = ['_' => 'botInfo', 'has_preview_medias' => Bool, 'user_id' => long, 'description' => 'string', 'description_photo' => Photo, 'description_document' => Document, 'commands' => [BotCommand, BotCommand], 'menu_button' => BotMenuButton, 'privacy_policy_url' => 'string', 'app_settings' => BotAppSettings, 'verifier_settings' => BotVerifierSettings];