← 回總覽

微信 ClawBot 接入 OpenClaw 的技术架构解析

📅 2026-03-22 21:40 idoubi 人工智能 4 分鐘 3857 字 評分: 85
OpenClaw WeChat ClawBot Agent iLink
📌 一句话摘要 详细拆解了微信 ClawBot 通过 iLink 中继服务与 openclaw-weixin 插件接入 OpenClaw 的技术原理,并对比了其与 Telegram 长轮询机制的差异。 📝 详细摘要 该推文深入解析了微信 ClawBot 的接入架构,核心在于利用云端中继服务 iLink 和 openclaw-weixin 插件,通过长轮询机制将微信消息转发至 OpenClaw Gateway,进而调用 Agent Runtime。作者通过对比 Telegram 的长轮询实现方式,清晰地展示了不同 IM 平台接入本地 Agent 的技术路径,为开发者提供了具体的工程实现参考。
Skip to main content ![Image 1: LogoBestBlogs](https://www.bestblogs.dev/ "BestBlogs.dev")Toggle navigation menu Toggle navigation menuArticlesPodcastsVideosTweetsSourcesNewsletters

⌘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

![Image 2: idoubi](https://www.bestblogs.dev/en/tweets?sourceId=SOURCE_ea4abc) ### 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

!Image 3: Tweet image

!Image 4: idoubi

#### 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 服务器把消息推到用户对话框,完成一次交互
理论上,只要开放了拉消息和推消息 API 的 im 软件,都可以本地接入 Moltbot。官方支持 whatsapp、tg、discord 等,第三方实现了飞书机器人接入。

不支持长连接的 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 ![Image 5: idoubi](https://www.bestblogs.dev/en/tweets?sourceid=ea4abc) 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

WeChat

ClawBot

Agent

iLink HomeArticlesPodcastsVideosTweets

Technical Architecture of WeChat ClawBot's Integration wi...

查看原文 → 發佈: 2026-03-22 21:40:58 收錄: 2026-03-23 02:00:11

🤖 問 AI

針對這篇文章提問,AI 會根據文章內容回答。按 Ctrl+Enter 送出。