接入步骤
- 在 Telegram 中搜索
@BotFather,创建新机器人并获取bot token。 - 运行
openclaw channels add,选择 Telegram 渠道并输入 token 完成配置。 - 如需限制访问,在配置中加入
allowfrom白名单。
示例配置
openclaw channels add
# 选择 Telegram 后输入:
bot token: 123456:AA...
allowfrom: ["你的用户ID"]
openclaw gateway start。openclaw logs --follow。@BotFather,创建新机器人并获取 bot token。openclaw channels add,选择 Telegram 渠道并输入 token 完成配置。allowfrom 白名单。https://open.feishu.cn/,创建企业自建应用并启用机器人能力。app id 与 app secret,在权限管理导入下方权限集。openclaw channels add,选择飞书渠道并输入 app 信息完成配对。im.message.receive_v1。openclaw pairing approve feishu <配对码>。corpid / agentid / secret / encodingaeskey。openclaw channels login wecom,按提示输入以上参数完成配置。https://open.dingtalk.com/,创建企业内部应用。clientid(appkey) 与 clientsecret,配置服务器地址用于接收消息。openclaw channels login dingtalk 完成配置。appid 与 token。openclaw channels login qq,输入 appid 与 token 完成配置。phone number 与 token。openclaw channels add,选择 WhatsApp 渠道并输入号码与 token。allowfrom 白名单(国际号码格式)。openclaw channels add,选择 iMessage 渠道。host 与 port,并确认客户端授权 OpenClaw 访问消息。