• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/core
  • highlevel/methods
  • setMyCommands

Function setMyCommands

  • setMyCommands(
        client: ITelegramClient,
        params: {
            commands: null | RawBotCommand[];
            langCode?: string;
            scope?: BotCommands.IntermediateScope | TypeBotCommandScope;
        },
    ): Promise<void>
  • Set or delete commands for the current bot and the given scope

    Learn more about scopes in the Bot API docs

    Parameters

    • client: ITelegramClient
    • params: {
          commands: null | RawBotCommand[];
          langCode?: string;
          scope?: BotCommands.IntermediateScope | TypeBotCommandScope;
      }
      • commands: null | RawBotCommand[]

        New list of bot commands for the given scope.

        Pass empty array or null to delete them.

      • 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/set-my-commands.ts:14

Settings

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

Generated using TypeDoc