Back to README
Telegram
The Telegram channel uses long polling via the Telegram Bot API for bot-based communication. It supports text messages, media attachments (photos, voice, audio, documents), voice transcription (setup), and built-in command handling.
Configuration
{
"channel_list": {
"telegram": {
"enabled": true,
"type": "telegram",
"token": "123456789:ABCdefGHIjklMNOpqrsTUVwxyz",
"allow_from": ["123456789"],
"placeholder": {
"enabled": true,
"text": ["Thinking... 💭"]
},
"group_trigger": {
"mention_only": false
},
"reasoning_channel_id": "",
"proxy": "",
"use_markdown_v2": false,
"media_group_delay_ms": 500
}
}
}
| Field | Type | Required | Description |
|---|---|---|---|
| enabled | bool | Yes | Whether to enable the Telegram channel |
| token | string | Yes | Telegram Bot API Token |
| allow_from | array | No | Allowlist of user IDs; empty means all users are allowed |
| placeholder | object | No | Placeholder message config shown while the agent is working |
| group_trigger | object | No | Group trigger settings (e.g. { "mention_only": true }) |
| reasoning_channel_id | string | No | Optional chat ID to route reasoning/thinking output to a separate chat |
| base_url | string | No | Custom Telegram Bot API server URL (e.g. https://my-bot-api.example.com/bot). Leave empty to use the official api.telegram.org endpoint |
| proxy | string | No | Proxy URL for connecting to the Telegram API (e.g. http://127.0.0.1:7890) |
| use_markdown_v2 | bool | No | Enable Telegram MarkdownV2 formatting |
| media_group_delay_ms | int | No | Idle delay before processing Telegram media groups/albums. Defaults to 500 ms |
| streaming.enabled | bool | No | false |
| streaming.throttle_seconds | int | No | 0 |
| streaming.min_growth_chars | int | No | 0 |
Setup
- Search for
@BotFatherin Telegram - Send the
/newbotcommand and follow the prompts to create a new bot - Obtain the HTTP API Token
- Fill in the Token in the configuration file
- (Optional) Configure
allow_fromto restrict which user IDs can interact (you can get IDs via@userinfobot)
Reactions
The Telegram channel supports message reactions. The gateway acknowledges each inbound message with a 👀 reaction and removes it when the reply is sent, and the reaction tool can add the same reaction on demand.
Built-in Commands
Telegram auto-registers PicoClaw's top-level bot commands at startup, including /start, /help, /show, /list, and /use. Setting channel_list.telegram.commands_enabled to false clears the menu and makes the agent reject all slash commands.
Skill-related commands:
/list skillslists the installed skills visible to the current agent./list mcplists configured MCP servers and whether they are deferred/connected./list pluginslists installed plugin packages and their state./show mcp <server>lists the active tools for a connected MCP server./use <skill> <message>forces a skill for a single request./use <skill>arms the skill for your next message in the same chat./use clearclears a pending skill override.
Examples:
/list skills
/list mcp
/show mcp github
/use git explain how to squash the last 3 commits
/use git
explain how to squash the last 3 commits
When you send a command that accepts sub-commands (for example /list), the usage reply includes inline-keyboard buttons for each sub-command that can run without arguments. Tapping a button runs the equivalent slash command without typing it again.
Sending /use without arguments opens a paginated skill picker. The bot replies with a grid of inline buttons — one per installed skill — plus Previous/Next navigation buttons when there are more than fit on one page. Tapping a skill runs /use <skill> and arms that skill for your next message.
Model switching:
/list modelsshows the configured models as a numbered list./switch model <index>switches to the model at that position (for example/switch model 3)./switch model <name>still accepts the exact model name, an unambiguous prefix, and the legacy/switch model to <name>form./switch modelon its own opens a paginated model picker with inline-keyboard buttons. Tapping a model runs/switch model <index>and switches immediately.
Advanced Formatting
You can set use_markdown_v2: true to enable enhanced formatting options. This allows the bot to utilize the full range of Telegram MarkdownV2 features, including nested styles, spoilers, and custom fixed-width blocks.
{
"channel_list": {
"telegram": {
"enabled": true,
"type": "telegram",
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"],
"use_markdown_v2": true
}
}
}