create_command
Create a new Telegram bot command with custom trigger, code, or reply. Set parse mode, keyboard, aliases, and other options subject to rate limits.
Instructions
Create a new bot command. Subject to creation rate limits (10/sec, 30/min, 200/hr) and bot capacity cap (1000 commands, 10MB total).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | JavaScript code (max 100K chars). | |
| name | Yes | Command trigger, e.g. /start | |
| botid | Yes | The numeric bot ID. | |
| answer | No | Static reply text (max 10K chars). | |
| folder | No | Optional folder name (must exist). | |
| is_web | No | ||
| aliases | No | Alternative triggers. | |
| keyboard | No | Keyboard identifier, e.g. main_menu | |
| need_reply | No | ||
| parse_mode | No | Telegram parse mode: Markdown, HTML, etc. | |
| allow_only_group | No |