Prerequisites
- A QQ account
- Access to QQ Open Platform (developer account)
- A LemonClaw instance:
- Hosted: create a Claw instance
- Self-hosted: install LemonClaw
Setup Guide
Create a QQ Bot Application
- Go to QQ Open Platform
- Log in and go to the Bot section
- Click Create Bot
- Fill in the bot information (name, avatar, description)
- Submit for review
Get Credentials
- Once approved, go to your bot’s Development Settings
- Copy the AppID
- Copy the AppSecret (Client Secret)
Configure Sandbox (for Testing)
- In the bot settings, go to Sandbox Configuration
- Add your QQ number to the sandbox whitelist
- This allows you to test before going live
Open the LemonClaw WebUI
- If you’re using hosted Claw, go to your Claw Dashboard and click Open WebUI
- If you’re self-hosting LemonClaw, open your own WebUI (for example
http://your-ip:18789) and sign in with your token - In the WebUI, navigate to Settings → Channels
- Expand the QQ section
- Paste your AppID and AppSecret
- Click Save
Supported Message Types
| Type | Description |
|---|---|
| C2C (Private) | Direct messages to the bot |
| Group @mention | @mention the bot in a QQ group |
Current LemonClaw QQ support covers direct messages and group @bot events. Plain non-mention group messages and QQ channel (频道) conversations are not handled yet.
Troubleshooting
Current LemonClaw QQ support covers direct messages and group @bot events. Plain non-mention group messages and QQ channel conversations are not handled yet.
Bot not responding
Bot not responding
- Verify AppID and AppSecret are correct
- Check that your QQ number is in the sandbox whitelist (if testing)
- Make sure the bot application is approved
'invalid appid' error
'invalid appid' error
- Double-check the AppID — it should be a numeric string
- Make sure you’re using the correct AppSecret (not the token)