• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/bun
  • methods
  • deleteMyCommands

Function deleteMyCommands

  • deleteMyCommands(
        client: ITelegramClient,
        params?: {
            langCode?: string;
            scope?: BotCommands.IntermediateScope | TypeBotCommandScope;
        },
    ): Promise<void>
  • Delete commands for the current bot and the given scope.

    Does the same as passing null to setMyCommands

    Learn more about scopes in the Bot API docs

    Parameters

    • client: ITelegramClient
    • Optionalparams: {
          langCode?: string;
          scope?: BotCommands.IntermediateScope | TypeBotCommandScope;
      }
      • OptionallangCode?: string

        User language applied to the scope.

      • Optionalscope?: BotCommands.IntermediateScope | TypeBotCommandScope

        Scope of the commands.

        Default

        BotScope.default_ (i.e. botCommandScopeDefault)

    Returns Promise<void>

    • Defined in packages/core/src/highlevel/methods/bots/delete-my-commands.ts:15

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc