Link Search Menu Expand Document

Constructor: botInfo

Back to constructors index

Info about bots (available bot commands, etc)

Attributes:

NameTypeRequiredDescription
user_idlongOptionalID of the bot
descriptionstringOptionalDescription of the bot
description_photoPhotoOptionalDescription photo
description_documentDocumentOptionalDescription animation in MPEG4 format
commandsArray of BotCommandOptionalBot commands that can be used in the chat
menu_buttonBotMenuButtonOptionalIndicates 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];