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 → Set My Commands
AI-generatedSummary
Set the list of commands supported by the Telegram bot for a specified scope and language.
Inputs
- Commands (JSON) (required) — Provide a JSON array of BotCommand objects, each with a 'command' and 'description' field, e.g. [{"command":"start","description":"Start"}].
- Scope (JSON) — Define the scope of the bot commands as a JSON object (BotCommandScope) to control where these commands apply.
- Language Code — Specify a two-letter ISO 639-1 language code to set commands for a particular language.
Output shape
A single JSON object indicating success status of the operation.
The operation returns the Telegram API response for setting bot commands. If successful, the response indicates true. Supports scope and language code for targeted command lists.
Examples
Example 1: Set global commands for the bot
Set Commands (JSON) to [{"command":"start","description":"Start the bot"}, {"command":"help","description":"Get help"}] and leave Scope and Language Code empty.