NekoBot supports multiple chat platforms through a unified platform adapter interface for cross-platform message processing.
| Platform | Status | Protocol |
|---|---|---|
| ✅ | OneBot V11 (AIOCQHTTP) | |
| Discord | ✅ | Discord Bot API |
| Telegram | ✅ | Telegram Bot API |
Select a platform to start configuration:
Add platform in Web dashboard:
Edit data/platforms_sources.json:
{
"aiocqhttp": {
"type": "aiocqhttp",
"enable": true,
"id": "aiocqhttp",
"name": "NekoBot",
"ws_host": "0.0.0.0",
"ws_port": 6299,
"command_prefix": "/"
}
}If you need to integrate with a new platform, you can develop custom platform adapters.
Reference the implementation of QQ Platform Adapter.
Each platform adapter needs to implement the following methods:
connect() - Connect to platformsend_message() - Send messagedisconnect() - Disconnectget_stats() - Get statisticsNekoBot uses a unified message model to handle differences between platforms:
{
"message_id": 12345,
"group_id": 67890,
"user_id": 54321,
"sender_name": "User Nickname",
"message_type": "group", # group or private
"message": "Message content",
"platform_id": "aiocqhttp",
"raw_message": "...", # Original message
"timestamp": 1234567890
}NekoBot supports connecting to multiple platforms simultaneously. Simply add multiple platforms in the configuration file.
Cross-platform message forwarding can be achieved through plugins.
Different platforms have different API limitations. Please refer to the documentation for each platform.