This skill helps create a new Telegram agent with complete configuration.
Before starting, ensure you have:
Ask the user for:
healthman, news-bot, task-manager1234567890:ABCdefGHIjklMNOpqrSTUvwxyzIf user doesn't have a token, provide these steps:
> How to Create a Telegram Bot Token:
> 1. Open Telegram and search for @BotFather
> 2. Start a chat with BotFather and send /newbot
> 3. Follow the prompts:
> - Enter a name for your bot (display name, e.g., "CookMaster")
> - Enter a username for your bot (must end in 'bot', e.g., "cookmaster_bot")
> 4. BotFather will send you a message containing your HTTP API token
> 5. Copy the token (format: 1234567890:ABCdefGHIjklMNOpqrSTUvwxyz)
>
> Important: Keep your token secure. Anyone with your token can control your bot.
Based on user input, prepare the following configurations:
{
"id": "<agent-id>",
"name": "<Agent Name>",
"workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
"agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
{
"agentId": "<agent-id>",
"match": {
"channel": "telegram",
"accountId": "<bot-id>"
}
}
"<bot-id>": {
"enabled": true,
"dmPolicy": "pairing",
"botToken": "<full-bot-token>",
"groupPolicy": "allowlist",
"streamMode": "partial"
}
CRITICAL: DO NOT MODIFY openclaw.json DIRECTLY
Present the following to the user in a clear format:
The following changes will be made to openclaw.json:
{
"id": "<agent-id>",
"name": "<Agent Name>",
"workspace": "/Users/<user>/.openclaw/workspace-<agent-id>",
"agentDir": "/Users/<user>/.openclaw/agents/<agent-id>/agent"
}
{
"agentId": "<agent-id>",
"match": {
"channel": "telegram",
"accountId": "<bot-id>"
}
}
"<bot-id>": {
"enabled": true,
"dmPolicy": "pairing",
"botToken": "<full-bot-token>",
"groupPolicy": "allowlist",
"streamMode": "partial"
}
Based on the provided purpose, generate a responsibility description covering:
Please confirm to proceed with the modifications. Any adjustments needed?
Only proceed after user explicitly confirms (e.g., "confirm", "proceed", "execute", "go ahead").
Once confirmed:
```bash
mkdir -p /Users/
mkdir -p /Users/
```
agents.listbindingschannels.telegram.accountsAGENTS.md - Work responsibilities and workflowSOUL.md - Agent personality and values共 1 个版本