deleteMyCommands¶
Returns: bool
- class litegram.methods.delete_my_commands.DeleteMyCommands(*, scope: BotCommandScopeUnion | None = None, language_code: str | None = None, **extra_data: Any)[source]¶
Use this method to delete the list of the bot’s commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns
Trueon success.Source: https://core.telegram.org/bots/api#deletemycommands
- scope: BotCommandScopeUnion | None¶
A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to
litegram.types.bot_command_scope_default.BotCommandScopeDefault.
Usage¶
As bot method¶
result: bool = await bot.delete_my_commands(...)
Method as object¶
Imports:
from litegram.methods.delete_my_commands import DeleteMyCommandsalias:
from litegram.methods import DeleteMyCommands
With specific bot¶
result: bool = await bot(DeleteMyCommands(...))
As reply into Webhook in handler¶
return DeleteMyCommands(...)