bots.ResetBotCommands

class pyrogram.raw.functions.bots.ResetBotCommands

Clear bot commands for the specified bot scope and language code

Details:
  • Layer: 227

  • 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
├── scope → BotCommandScope
│ ├── BotCommandScopeUsers
│ ├── BotCommandScopeChats
│ ├── BotCommandScopePeer
│ │ └── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ │ └── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── user_id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
└── lang_code → string

Example

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