跳转到内容

最近更新 · 2026-01-30

OpenClaw 接入 Telegram(最稳定、最推荐)

你将完成什么

  • 创建 Telegram Bot 并拿到 Bot Token
  • 在 OpenClaw 中启用 Telegram 通道
  • 重启 gateway 并验证机器人能回复
  • 学会处理:不回复、网络被墙、配对失败

Step 0:确认 gateway 正常运行

bash
openclaw gateway status || trueopenclaw gateway --detach

Step 1:创建机器人(BotFather)

  • Telegram 搜索 @BotFather → /newbot → 获取 TOKEN

Step 2:写入配置

bash
openclaw config set channels.telegram.botToken "YOUR_TELEGRAM_BOT_TOKEN"openclaw config set channels.telegram.enabled true

Step 3:重启 gateway

bash
openclaw gateway restart

Step 4:Telegram 里 /start 并测试

  • 搜索你的 bot → /start → 发消息

Step 5:如有配对码,批准

bash
openclaw pairing approve telegram <配对码>

代理问题(国内常见)

bash
export https_proxy=http://127.0.0.1:7890export http_proxy=http://127.0.0.1:7890openclaw gateway restart

下一步

  • 排错:/docs/troubleshooting
  • 高级配置与白名单:/docs/advanced-config