Link Search Menu Expand Document

Constructor: updateBotCommands

Back to constructors index

The command set of a certain bot in a certain chat has changed.

Attributes:

NameTypeRequiredDescription
peerlongYesThe affected chat
bot_idlongYesID of the bot that changed its command set
commandsArray of BotCommandYesNew bot commands

Type: Update

Example:

$updateBotCommands = ['_' => 'updateBotCommands', 'peer' => long, 'bot_id' => long, 'commands' => [BotCommand, BotCommand]];