Layer 227
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(1234567890),
    Commands: &tg.VectorBotCommand{},
}