Skip to content

bots.setBotCommands

Layer 225

Constructor ID: 0x0517165a
Returns: Bool

Parameters

NameTypeDescription
scopeBotCommandScope
lang_codestring
commands[]BotCommand

Example

go
result, err := client.Raw(&tg.SetBotCommandsRequest{
    scope: nil, // BotCommandScope
    lang_code: "",
    commands: nil,
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.