Telegram Bot icon

Telegram Bot

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

Actions101

Bot → Delete My Commands

AI-generated

Summary

Delete the bot's commands for a specified scope and language using optional parameters to define the command scope and language code.

Inputs

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

Output shape

a single object indicating the success status of the delete operation (boolean)

The operation returns the Telegram API response result, typically a boolean value indicating whether the commands were successfully deleted.

Examples

Example 1: Delete all bot commands globally

Do not specify scope or language code; all commands will be deleted globally.

Example 2: Delete bot commands for a specific language and scope

Provide 'scope' as a JSON object to target a specific scope of users and 'language_code' to target commands in a specific language.

Links

Discussion