Prerequisites
- A QQ account
- Access to QQ Open Platform (developer account)
- A Claw instance (create one here)
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
Configure in LemonData Dashboard
- Go to your Claw Dashboard
- Click the settings icon on your instance
- Open the IM Integrations tab
- 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 |
| Channel | Messages in QQ channels (频道) |
Troubleshooting
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)