Layer 220
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

Update

Gogram Example

// Creating UpdateBotCommands constructor
obj := &tg.UpdateBotCommands{
    Peer: &tg.Peer{},
    BotId: int64(0),
    Commands: []tg.BotCommand{&tg.BotCommand{}},
}