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 bot commands
Inputs
- bot_commands (required) — JSON array of BotCommand objects, each with "command" and "description" fields.
- scope — Optional JSON object defining the command scope (e.g., language_code or default scope).
- language_code — Two‑letter ISO 639‑1 language code for the commands.
Output shape
array of record objects, each containing a json field with the Telegram API response (e.g., {ok:true, result: [...]} )
On success the
jsonreflects the API result; on error it may contain an error object if continueOnFail is disabled.
Examples
Example 1: Define basic commands in the default language
{"bot_commands":[{"command":"start","description":"Start"},{"command":"help","description":"Help"}]}
Example 2: Define commands for a specific language
{"bot_commands":[{"command":"start","description":"開始"},{"command":"help","description":"ヘルプ"}],"scope":{"language_code":"ja"}