Lingchu Bot documentation is now live — check it out!
Lingchu Bot

QQ Platform Overview

QQ Platform Overview

QQ is the only currently implemented platform profile. The plugin selects one QQ adapter at startup via LINGCHUAdapter (default: ~onebot.v11).

Protocol priority

PriorityProtocolAdapter IDNoneBot packageStatus
1 (default)OneBot V11~onebot.v11nonebot-adapter-onebotActive
2QQ Official~qqnonebot-adapter-qqDeprecated
3OneBot V12~onebot.v12nonebot-adapter-onebotDeprecated

Only one QQ adapter is considered enabled at a time. Other adapters that NoneBot loads are treated as disabled and excluded from platform resolution, message storage, and API call recording. QQ Official and OneBot V12 have been deprecated and removed from the project, including their source code.

Switching protocols

Set LINGCHUAdapter in .env. Only OneBot V11 is active in the startup flow:

DRIVER=~fastapi+~httpx+~websockets
ONEBOT_ACCESS_TOKEN=your-token

Deprecated adapters

QQ Official (~qq) and OneBot V12 (~onebot.v12) have been deprecated and removed from the project, including their source code. Setting LINGCHUAdapter to a deprecated adapter ID is no longer supported.

Implementation matrix

Each protocol has a default handler set and optional implementation-specific extensions:

ProtocolImplementationExtension highlights
OneBot V11defaultCore group management commands
OneBot V11NapCatGroup announcement + group avatar

Source layout

handle/qq/
├── commands/              # Shared QQ command definitions (Alconna matchers)
│   ├── triggers.py        # Command trigger words (zh/en)
│   ├── mute.py
│   ├── member.py
│   ├── block.py
│   ├── announcement.py
│   ├── remote.py          # Remote management commands
│   └── ...
└── adapters/
    └── onebot11/
        ├── default/       # OneBot V11 default handlers
        └── napcat/        # NapCat extensions

Next steps

Last updated on

On this page