用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/marktoda/everclaw --skill add-channel-telegram命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | add-channel-telegram |
| description | Set up Telegram as a messaging channel — bot token, configuration, and verification |
Walk the user through connecting a Telegram bot to everclaw. This skill is standalone — run it from /setup or anytime to add Telegram.
Work through each phase in order. Use TaskCreate to track progress. Be autonomous: detect what's already done, only ask questions when a real choice is needed. NEVER echo secrets to the terminal or pass them as bash arguments — use the Read and Edit tools to modify .env.
Check .env exists in the project root. If not, tell the user to run /setup first and stop.
Read .env and check if CHANNEL_TELEGRAM is already set.
AskUserQuestion:
Telegram is already configured (
CHANNEL_TELEGRAMis set in.env). What would you like to do?
- Keep it — Skip to verification
- Reconfigure — Replace with a new bot token
Use AskUserQuestion to collect the bot token:
Paste your Telegram bot token.
To get one:
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts- Copy the token (looks like
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
Append CHANNEL_TELEGRAM=<token> to .env using the Edit tool. If reconfiguring, replace the existing CHANNEL_TELEGRAM line.
Detect the deployment method and tell the user how to restart:
docker-compose.yml exists in the project root.docker compose restart (or docker compose up --build if not running)."node src/index.ts."Tell the user to restart now and wait for them to confirm it's running. Look for startup logs indicating the Telegram adapter connected.
Check if ALLOWED_CHAT_IDS is already configured in .env (uncommented and non-empty).
If not configured (first channel):
Walk the user through discovery mode:
telegram:123456789. Copy this value."AskUserQuestion to collect the chat ID.Edit tool to set ALLOWED_CHAT_IDS=<chat_id> in .env. If the line is commented out, uncomment and set it.If already configured (adding another channel):
AskUserQuestion to collect the chat ID.Edit tool to append the new ID to the existing ALLOWED_CHAT_IDS value (comma-separated).After updating, tell the user to restart again (same instructions as Phase 3).
ALLOWED_CHAT_IDS contains the right prefixed IDTell the user they can add more channels later with /add-channel-discord, /add-channel-slack, /add-channel-whatsapp, or /add-channel-gmail.