Install
openclaw skills install create-agent-telegram创建新 OpenAgent Agent 并绑定 Telegram Bot
openclaw skills install create-agent-telegram自动化创建新的 OpenClaw agent 并绑定到 Telegram 机器人。
openclaw config set "channels.telegram.accounts.<bot名>.botToken" "<token>"
openclaw config set "channels.telegram.accounts.<bot名>.dmPolicy" "pairing"
openclaw agents add <agentID> --non-interactive --workspace /root/.openclaw/workspace-<agentID>
openclaw agents bind --agent <agentID> --bind telegram:<bot名>
openclaw gateway restart
| 参数 | 说明 | 示例 |
|---|---|---|
| bot名 | Telegram bot 账户 ID | judge |
| token | BotFather 给的 token | 8764559332:xxx |
| agentID | 新 agent 的 ID | judge |
openclaw agents bindings
openclaw gateway status
# 添加 bot
openclaw config set "channels.telegram.accounts.judge.botToken" "8764559332:AAGxxx"
openclaw config set "channels.telegram.accounts.judge.dmPolicy" "pairing"
# 创建 agent
openclaw agents add judge --non-interactive --workspace /root/.openclaw/workspace-judge
# 绑定
openclaw agents bind --agent judge --bind telegram:judge
# 重启
openclaw gateway restart