渠道接入 简单 10-15分钟

接入 Telegram 机器人

让 OpenClaw 在 Telegram 中与你对话

#Telegram #Bot #Messaging

准备工作

  • Telegram account
  • OpenClaw deployed

操作步骤

1

创建 Telegram Bot

通过 BotFather 创建一个新的机器人。

命令 / 操作

All Systems
在 Telegram 搜索 @BotFather → 发送 /newbot → 按提示设置名称和用户名

小提示

  • Bot username must end with 'bot', e.g., myopenclaw_bot
  • After creation, you'll receive a Token in format like 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
2

复制 Bot Token

保存 BotFather 返回的 Token。

命令 / 操作

All Systems
复制类似 123456789:ABCdefGHIjklMNOpqrsTUVwxyz 的 Token

小提示

  • Token is important, don't share it with others
  • If leaked, you can regenerate in BotFather
3

配置 OpenClaw 渠道

在 OpenClaw 中添加 Telegram 渠道。

命令 / 操作

All Systems
OpenClaw 管理界面 → 渠道管理 → 添加渠道 → 选择「Telegram」→ 填入 Bot Token

小提示

  • After saving, OpenClaw will automatically connect to Telegram
4

开始对话

在 Telegram 中与你的机器人对话。

命令 / 操作

All Systems
在 Telegram 搜索你的机器人用户名 → 点击「开始」→ 发送消息

小提示

  • Telegram is the easiest integration, recommended for beginners

常见问题

无法连接到 Telegram?
确保服务器可以访问 Telegram API(可能需要代理)
机器人不回复?
检查 Token 是否正确,确认渠道已启用