bots.ResetBotCommands

class pyrogram.raw.functions.bots.ResetBotCommands

Clear bot commands for the specified bot scope and language code

Details:
  • Layer: 223

  • ID: 3D8DE0F9

Parameters:
  • scope (BotCommandScope) – Command scope

  • lang_code (str) – Language code

Returns:

bool

TL Schema

bots.resetBotCommands#3d8de0f9
scope:BotCommandScope
lang_code:string

= Bool

Parameter Tree

ResetBotCommands
├── 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(
    ResetBotCommands(
        scope=BotCommandScopeDefault(),
        lang_code="text",
    )
)