openclaw icon indicating copy to clipboard operation
openclaw copied to clipboard

[Feature]: Add QQ Channel Support for China Mainland Users

Open Taki-Ta opened this issue 10 months ago • 7 comments

Summary

Users in China Mainland face significant barriers accessing international messaging platforms (Telegram, WhatsApp,
Discord) due to network restrictions (GFW). This prevents a large potential user base from using Moltbot as their AI
assistant gateway.

QQ is one of China's largest messaging platforms (Tencent, 600M+ active users), freely accessible without restrictions. Adding QQ support would enable Chinese users to use Moltbot through their most commonly used messaging
app.

Proposed solution

Add QQ as a new channel in Moltbot using the OneBot v11 protocol:

  • Protocol: OneBot v11 (standard bot protocol for QQ ecosystem)
  • Backend: https://github.com/NapNeko/NapCatQQ (actively maintained OneBot implementation)
  • Communication: WebSocket (forward connection)
  • Structure: Extension under extensions/qq/

Features:

  • Private message (DM) support
  • Group message support
  • Media message handling (images, files)
  • Multi-account support
  • DM policy (pairing/allowlist/open)
  • Onboarding wizard integration

I have a working implementation ready and can break it into smaller PRs for easier review:

  1. OneBot client and protocol types
  2. Account management and config schema
  3. Message sending/receiving
  4. Channel plugin integration

Alternatives considered

  1. Other QQ bot frameworks (e.g., go-cqhttp) - NapCatQQ is more actively maintained and has better compatibility with latest QQ versions
  2. HTTP API instead of WebSocket - WebSocket provides real-time bidirectional communication, better suited for chat
    applications
  3. WeChat support - WeChat has stricter bot restrictions; QQ's OneBot ecosystem is more mature and bot-friendly

Additional context

  • https://napneko.github.io/zh-CN/
  • https://github.com/botuniverse/onebot-11
  • Working implementation: https://github.com/user/moltbot/tree/feat/qq-channel (ready for review)

Taki-Ta avatar Jan 29 '26 01:01 Taki-Ta

感谢大佬!

diehe avatar Jan 29 '26 02:01 diehe

支持

WEP-56 avatar Jan 29 '26 04:01 WEP-56

Definitely need this.

Onebot is a widely used bot protocol in China. And there are many Onebot-compatible open source adapters for social media in China.

GoForceX avatar Jan 29 '26 07:01 GoForceX

我们也在做一个 molbot中文版:https://github.com/CrayBotAGI/Craybot 现在头疼分支管理和自动依赖的事情 有兴趣的朋友们可以来玩一下,QQ扫码

Image

mastwet avatar Jan 29 '26 08:01 mastwet

有人做了这个,你们可以看看:https://github.com/moltbot/moltbot/pull/3848

mastwet avatar Jan 29 '26 08:01 mastwet

有人做了这个,你们可以看看:#3848

https://github.com/moltbot/moltbot/pull/3229 我昨天提交了一个pr,但是管理员回复我改动量太大了,建议我建一个issue讨论一下

Taki-Ta avatar Jan 29 '26 09:01 Taki-Ta

OpenClaw Maintainer Triage // Issue Closure

Hi — this is a joint maintainer effort to keep the repo moving. We’re currently seeing ~30 new issues per hour, and we can’t review every future request without slowing down critical stabilization work. This issue is unlikely to be considered in the near term, so we’re closing it to keep the pipeline moving while we focus on stability.

We’re very sorry this is happening, but we won’t be able to look at the comments on this issue.

Want to make your request stand out? Submit a PR and report to #pr-thunderdome-dangerzone on Discord — READ THE TOPIC. Give us a clear briefing: what it fixes, who it helps, and why it’s worth shipping.

Thanks for understanding and for contributing.

sebslight avatar Feb 01 '26 00:02 sebslight