用途:在 OpenClaw 中并行添加或更新多个 Telegram 机器人账号,适合需要同时运行多个机器人、或为每个账号(乃至每个专用智能体)分配一个机器人的场景。
命名规则:机器人用户名必须为 Nebutra[三位数字]_bot(如 Nebutra007_bot),显示名须用英文古希腊哲学家名,固定集合包括 Socrates、Plato、Aristotle、Pythagoras、Heraclitus、Democritus、Epicurus、Zeno、Thales、Anaxagoras。
关键限制:OpenClaw 无法直接生成 Telegram 机器人令牌,令牌必须在 BotFather 中由用户通过 /newbot 创建。新机器人请求不得复用记忆或历史上下文中的旧令牌,必须使用 BotFather 新生成的令牌;若令牌已绑定现有账号,则按更新流程处理并需明确确认。
工作流:优先在 macOS 上使用 RPA 辅助脚本 botfather_rpa_assist_mac.sh;不可用时运行 prepare_botfather_new_bot.sh 生成确定性的 BotFather 输入;获取新令牌后用 Telegram getMe 校验,用户名不匹配 ^Nebutra[0-9]{3}_bot$ 或已注册则拒绝;随后在 OpenClaw 中添加/更新账号(channels add),重启网关并验证 running 与 probe.ok=true;可选创建绑定 telegram:<accountId> 的隔离智能体。
常用命令: bash scripts/botfather_rpa_assist_mac.sh --name "Aristotle" bash scripts/prepare_botfather_new_bot.sh bash scripts/add_async_telegram_bot.sh --token "<TOKEN>" 相关可选参数包括 --agent-id、--no-configure、--wait-clipboard、--serial、--json、--account-id、--name、--allow-existing-token、--dry-run。
未提供信息:具体平台支持范围、网关配置细节及失败处理之外的其他能力暂未提供。