← 返回
AI智能 Key

Create Agent + Telegram Bot

创建新 OpenAgent Agent 并绑定 Telegram Bot
创建新 OpenAgent Agent 并绑定 Telegram Bot
liangzhiyu
AI智能 clawhub v1.0.0 1 版本 99823.6 Key: 需要
★ 0
Stars
📥 566
下载
💾 5
安装
1
版本
#latest

概述

创建 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 00:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,076
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,772
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 417 📥 115,182