Copy library / Guides / Grok Bot
A bridge connecting a WeChat ClawBot to Grok Bot routines
# 把微信 ClawBot 接到 Grok Bot 例程的桥接工具 Source: https://github.com/number5meme/grokbot-wechatclaw-bridge Author: number5meme GitHub 项目 grokbot-wechatclaw-bridge 把微信 ClawBot(腾讯 iLink bot API)桥接到任意 HTTP webhook 或 AI 代理:扫码登录、只出站的长轮询、主人保护、支持媒体、可自我恢复,并可配合 Grok Bot 例程使用。
- What it does
- The GitHub project grokbot-wechatclaw-bridge connects a WeChat ClawBot (Tencent iLink bot API) to any HTTP webhook or AI agent, with QR login, outbound-only long polling, owner protection, media support and self-recovery. It works with Grok Bot routines.
- Scenarios
- Watch PRs / repos
- What the source covers
- Author & original linkYes
- What it doesYes
- Verbatim source excerptYes
- Screenshots / mediaNot in source
- Steps / chaptersYes
- Verbatim prompt / configNot in source
- Results / numbersNot in source
- Risk notesYes
- Related entriesYes
— means the source doesn't say; we don't fill it in.
- Verbatim source excerpt
number5meme/grokbot-wechatclaw-bridge
Bridge a WeChat ClawBot (Tencent iLink bot API) to any HTTP webhook or AI agent – QR login, outbound-only long polling, owner protection, media, self-recovering. Works with Grok Bot routines.
grokbot long-polling webhook wechatclawnumber5meme · · Open original ↗ From the project README, verbatim and untranslated.
- Steps / points from the source
- Outbound-only: no open port, public IP, domain, or TLS certificate; it runs behind NAT, on a laptop, or in a
- Any webhook: one JSON POST per accepted message (payload); payloads the webhook does not
- Safe replies: reply.sh --to '' --stdin with the text in a quoted heredoc, so reply text written by
- Self-recovering: reconnects forever with capped backoff, timeouts on every request, and recovery within about
- login.sh gets a QR code from iLink. You scan it with WeChat and confirm. The bot token is saved to state/ (mode 600).
- bin/bridge.js long-polls ilink/bot/getupdates. For each user message it applies dedupe and owner protection,
- Your agent replies with ./reply.sh --to '' --stdin (text in a quoted heredoc), or with --image,
- QR login (terminal QR code, PNG copy, or a link to open inside WeChat), including verification codes and QR refresh.
Verbatim from the source, untranslated.
- Prompt
The source does not include a prompt you can copy verbatim.
- How to copy
- Open the repo: github.com/number5meme/grokbot-wechatclaw-bridge ↗
- Read the README, send the repo link to your Bot and have it reproduce it
- Get it working small first, then add a routine
- Risks and limits
- Uses a browser or website login: the costliest kind of step, so prefer a connector where one exists
- Scheduled runs keep consuming usage: start at a low frequency and raise it once it is stable
- The author's result may not reproduce for you; the original post is the reference
- Usage estimate
- Estimate with the metal calculator