bots.GetBotCommands

class pyrogram.raw.functions.bots.GetBotCommands

Obtain a list of bot commands for the specified bot scope and language code

Details:
  • Layer: 223

  • ID: E34C0DD6

Parameters:
  • scope (BotCommandScope) – Command scope

  • lang_code (str) – Language code

Returns:

List of BotCommand

TL Schema

bots.getBotCommands#e34c0dd6
scope:BotCommandScope
lang_code:string

= Vector<BotCommand>

Parameter Tree

GetBotCommands
├── scopeBotCommandScope
│ ├── BotCommandScopeUsers
│ ├── BotCommandScopeChats
│ ├── BotCommandScopePeer
│ │ └── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ │ └── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
└── lang_codestring

Example

await app.invoke(
    GetBotCommands(
        scope=BotCommandScopeDefault(),
        lang_code="text",
    )
)