Create Agent + Telegram Bot

v1.0.0

创建新 OpenAgent Agent 并绑定 Telegram Bot

0· 272· 1 versions· 0 current· 0 all-time· Updated 15h ago· MIT-0

Install

openclaw skills install create-agent-telegram

创建 Agent + Telegram Bot

用途

自动化创建新的 OpenClaw agent 并绑定到 Telegram 机器人。

步骤

1. 获取 Bot Token

  • 找 @BotFather 创建新机器人,获取 token

2. 添加 Bot 到配置

openclaw config set "channels.telegram.accounts.<bot名>.botToken" "<token>"
openclaw config set "channels.telegram.accounts.<bot名>.dmPolicy" "pairing"

3. 创建新 Agent

openclaw agents add <agentID> --non-interactive --workspace /root/.openclaw/workspace-<agentID>

4. 绑定 Bot 到 Agent

openclaw agents bind --agent <agentID> --bind telegram:<bot名>

5. 重启 Gateway

openclaw gateway restart

参数说明

参数说明示例
bot名Telegram bot 账户 IDjudge
tokenBotFather 给的 token8764559332:xxx
agentID新 agent 的 IDjudge

验证

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

Version tags

latestvk9740bdn0a6qv0gp1809efqs0n82t22a