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 → Get My Commands
AI-generatedSummary
Retrieve the bot's currently configured commands.
Inputs
- scope — JSON object describing the scope of bot commands (BotCommandScope)
- language_code — Two-letter ISO 639-1 language code
Output shape
array of BotCommand objects
Each object contains command and description fields; may be empty; results reflect the optional scope and language_code.
Examples
Example 1: Fetch all commands with default settings
Leave scope and language_code empty; returns the full command list.
Example 2: Retrieve commands in a specific language
Set language_code to 'de' (or another code); returns localized commands.
Example 3: Get commands for a specific scope
Define a scope JSON (e.g., {"type":"default"}) to filter commands accordingly.