Add WeChat ClawBot connector#203
Open
jasmine889966 wants to merge 1 commit into
Open
Conversation
QR login against ilinkai.weixin.qq.com, long-poll inbound, and send_message replies for DMs. Pre-allows the account that scans.
jasmine889966
force-pushed
the
feat/weixin-clawbot
branch
from
July 26, 2026 17:20
1ea3a63 to
204d16e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a two-way WeChat ClawBot connector on Tencent's iLink API (
ilinkai.weixin.qq.com), so DMs on your phone can reach a local OpenWorker session.POST /v1/connectors/weixin/qrcode+ status poll); server turns the scan payload into a PNG data URLgetupdates; outbound throughsend_messagewith a per-chatcontext_tokenv1: DMs only (no groups). Outbound needs a prior inbound message (WeChat's ~24h window).
Test plan
pytest tests/test_weixin_flow.py tests/test_weixin_ilink.py tests/test_connectors.py tests/test_connectors_allowlist.py tests/test_connector_registry.py tests/test_connections.py tests/test_gateway_inbox_reply.py tests/test_message_source.py— 93 passednpx tsc --noEmitinsurfaces/guitest_qr_login_rest_connects_and_preallows_scanner; live/v1/connectors/weixin/qrcodereturns a valid PNG)test_enable_weixin_claims_dm_route_and_delivers)send_messagetoweixin:…uses storedcontext_token(test_send_message_weixin_uses_context_token)test_disconnect_clears_context_tokens)