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 existing bot commands

Inputs

  • botCommandsAdditionalFields — Additional fields to configure the command deletion scope, such as scope JSON and optional language code.

Output shape

a single record indicating success or failure of the deletion

Typically returns {ok:true, result:true} on success; errors are thrown and can be caught with continueOnFail.

Examples

Example 1: Delete all bot commands without custom scope or language

{}

Example 2: Delete commands scoped to a language and reset them

{"scope":{"type":"list","options":[]},"language_code":"en"}

Example 3: Delete commands with a custom language code only

{"language_code":"ru"}

Links

Discussion