⌘K
Change language Switch ThemeSign In
Narrow Mode
Technical Architecture of WeChat ClawBot's Integration with OpenClaw
Technical Architecture of WeChat ClawBot's Integration with OpenClaw
 ### idoubi@idoubicc
微信 ClawBot 接入 OpenClaw 的原理,跟 Telegram 接入 OpenClaw,本质上是一致的👇
- 微信实现了一个云端的中继服务 iLink
- 微信实现了一个 OpenClaw 插件 openclaw-weixin
- 用户在安装了 OpenClaw 的机器上安装 openclaw-weixin 插件,插件请求 iLink 服务,让用户扫码登录,登录凭证保存在 OpenClaw 的配置目录
- openclaw-weixin 通过长轮询,拉 iLink 服务的消息,转发给 OpenClaw Gateway,调用 Agent Runtime 做任务(用户在微信 ClawBot 发消息)
- openclaw-weixin 请求 iLink,把任务结果推送给用户(用户在微信 ClawBot 收到消息)
简单总结就是这么个流程👇
微信 ClawBot -> 中继服务(公网部署)<- 桥接服务(长轮询)-> OpenClaw Show More
#### idoubi
@idoubicc · 2mo ago
为什么不配置公网地址,也能在 Telegram 给电脑上的 Moltbot 发消息?主要是因为 Moltbot 的 Long Polling(长轮询)机制👇
- 在 tg 创建机器人,把 token 填到 Moltbot 的配置文件
- Moltbot 轮询 tg 的 API:/bot
/getUpdates?timeout=30,主动拉 tg 的消息
- 用户在 tg 发的消息,被 Moltbot 拉到了,Moltbot 把消息发给 agent runtime(p-mono) 进行处理
- Moltbot 把 agent runtime 的处理结果,调用 tg 的 API:/bot
/sendMessage 发给 tg 服务器
- tg 服务器把消息推到用户对话框,完成一次交互
不支持长连接的 im 软件或机器人平台,比如企业微信、微信公众号等,则需要把 Moltbot 部署到公网(或内网穿透),然后再通过 Webhook(回调)模式接入,实现要复杂一些。Show More
3
12
81
35.8K
Mar 22, 2026, 1:40 PM View on X
3 Replies
17 Retweets
75 Likes
14.7K Views  idoubi @idoubicc
One Sentence Summary
A detailed breakdown of the technical principles behind WeChat ClawBot's integration with OpenClaw via the iLink relay service and openclaw-weixin plugin, comparing it to the Telegram long-polling mechanism.
Summary
This tweet provides an in-depth analysis of the WeChat ClawBot integration architecture. The core involves using the cloud-based iLink relay service and the openclaw-weixin plugin to forward WeChat messages to the OpenClaw Gateway via long polling, which then invokes the Agent Runtime. By contrasting this with the Telegram long-polling implementation, the author clearly illustrates the technical paths for connecting local Agents to different IM platforms, offering developers a concrete engineering reference.
AI Score
85
Influence Score 27
Published At Today
Language
Chinese
Tags
OpenClaw
ClawBot
Agent
iLink HomeArticlesPodcastsVideosTweets