2026-02-02 19:01:51 -08:00
|
|
|
"""
|
|
|
|
|
Platform adapters for messaging integrations.
|
|
|
|
|
|
|
|
|
|
Each adapter handles:
|
|
|
|
|
- Receiving messages from a platform
|
|
|
|
|
- Sending messages/responses back
|
|
|
|
|
- Platform-specific authentication
|
|
|
|
|
- Message formatting and media handling
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from .base import BasePlatformAdapter, MessageEvent, SendResult
|
2026-04-14 01:33:06 +08:00
|
|
|
from .qqbot import QQAdapter
|
2026-02-02 19:01:51 -08:00
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
"BasePlatformAdapter",
|
|
|
|
|
"MessageEvent",
|
|
|
|
|
"SendResult",
|
feat: add QQ Bot platform adapter (Official API v2)
Add full QQ Bot integration via the Official QQ Bot API (v2):
- WebSocket gateway for inbound events (C2C, group, guild, DM)
- REST API for outbound text/markdown/media messages
- Voice transcription (Tencent ASR + configurable STT provider)
- Attachment processing (images, voice, files)
- User authorization (allowlist + allow-all + DM pairing)
Integration points:
- gateway: Platform.QQ enum, adapter factory, allowlist maps
- CLI: setup wizard, gateway config, status display, tools config
- tools: send_message cross-platform routing, toolsets
- cron: delivery platform support
- docs: QQ Bot setup guide
2026-04-13 21:56:38 +08:00
|
|
|
"QQAdapter",
|
2026-02-02 19:01:51 -08:00
|
|
|
]
|