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

Function getMyCommands

  • getMyCommands(
        client: ITelegramClient,
        params?: {
            langCode?: string;
            scope?: BotCommands.IntermediateScope | TypeBotCommandScope;
        },
    ): Promise<tl.RawBotCommand[]>
  • Get a list of current bot's commands for the given command scope and user language. If they are not set, empty set is returned.

    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<tl.RawBotCommand[]>

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

Settings

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

Generated using TypeDoc