Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Bot → Get My Commands

AI-generated

Summary

Retrieve the current list of the bot's commands optionally filtered by scope and language code.

Inputs

  • Scope (JSON) — JSON object describing the scope of bot commands (BotCommandScope) to filter the commands.
  • Language Code — Two-letter ISO 639-1 language code to retrieve commands for a specific language.

Output shape

a list of bot command objects, each representing a command available to the bot under the specified scope and language.

The response includes the 'result' property containing an array of commands. If no scope or language code is specified, it returns the default command list for the bot.

Examples

Example 1: Get all bot commands without filtering

Leave Scope and Language Code empty to retrieve all commands.

Example 2: Get commands for a specific scope and language

Provide a JSON object for Scope defining the command scope, and set the Language Code to a two-letter ISO 639-1 code.

Links

Discussion