Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Bot → Delete My Commands
AI-generatedSummary
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.