Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# BotCommandScopeDefault

class telegram.BotCommandScopeDefault(*, api_kwargs=None)

  Bases: `telegram.BotCommandScope`

  Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.

  Use In

  - `telegram.Bot.delete_my_commands()`

  - `telegram.Bot.get_my_commands()`

  - `telegram.Bot.set_my_commands()`

  New in version 13.7.

  type

    Scope type `'default'`.

    Type:

      `str`