bots.ResetBotCommands
- class pyrogram.raw.functions.bots.ResetBotCommands
Clear bot commands for the specified bot scope and language code
- Details:
Layer:
223ID:
3D8DE0F9
- Parameters:
scope (
BotCommandScope) – Command scopelang_code (
str) – Language code
- Returns:
bool
TL Schema
bots.resetBotCommands#3d8de0f9
scope:BotCommandScope
lang_code:string
= Bool
Parameter Tree
ResetBotCommands
├── scope →
BotCommandScope│ ├──
BotCommandScopeDefault│ ├──
BotCommandScopeUsers│ ├──
BotCommandScopeChats│ ├──
BotCommandScopePeer│ │ └── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ │ └── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ └──
BotCommandScopePeerUser│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ └── user_id →
InputUser│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ └──
InputUserFromMessage└── lang_code →
stringExample
await app.invoke(
ResetBotCommands(
scope=BotCommandScopeDefault(),
lang_code="text",
)
)