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 current list of the bot's commands optionally filtered by scope and language code.
Inputs
- Scope (JSON) — JSON object describing the scope of bot commands (BotCommandScope) to filter the commands.
- Language Code — Two-letter ISO 639-1 language code to retrieve commands for a specific language.
Output shape
a list of bot command objects, each representing a command available to the bot under the specified scope and language.
The response includes the 'result' property containing an array of commands. If no scope or language code is specified, it returns the default command list for the bot.
Examples
Example 1: Get all bot commands without filtering
Leave Scope and Language Code empty to retrieve all commands.
Example 2: Get commands for a specific scope and language
Provide a JSON object for Scope defining the command scope, and set the Language Code to a two-letter ISO 639-1 code.