Layer 220
UpdateBotCommands
The command set of a certain bot in a certain chat has changed.
constructor
updateBotCommands#4d712f2e peer:Peer bot_id:long commands:Vector<BotCommand> = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | Peer | The affected chat |
| BotId | long | ID of the bot that changed its command set |
| Commands | Vector<BotCommand> | New bot commands |
Returns
UpdateGogram Example
// Creating UpdateBotCommands constructor obj := &tg.UpdateBotCommands{ Peer: &tg.Peer{}, BotId: int64(0), Commands: []tg.BotCommand{&tg.BotCommand{}}, }