28633f3c62c3f9a680658eed03f54cb09a411378
When an incoming reply quotes a message SnowLuma's store doesn't have (e.g. one from before it was running, or never observed), the receive pipeline now fetches just that message from the server and persists it before dispatch — so a consumer's get_msg on the quote resolves instead of returning "message not found". Works for both group and private (c2c). - core: MessageApi.getGroupMessageBySeq / getC2cMessageBySeq — fetch a single message over a 1-wide [seq,seq] range, through the shared history throttle gate (same rate-limit as the bulk history APIs — no flood / kick risk). - onebot: backfillReplyTarget — on a group/friend reply whose target isn't in the store, fetch (group SsoGetGroupMsg / c2c SsoGetC2cMsg, uid resolved for c2c) and persist under the EXACT id the reply resolves to, so get_msg hits regardless of who sent the quoted message (a bot self-sent c2c message converts with user_id=self but is keyed under the peer session). Awaited before dispatch so the consumer sees it; best-effort — a back-fill failure never blocks delivery of the live message. - tests: gating (already-stored / no-reply / nothing-on-server) + keying (group, c2c, c2c self-sent under peer session). Only fires on a store miss, so the common path (no reply, or quote already stored) stays zero-cost.
Next Remote Protocol Framework.
Releases · Issues · QQ 群 · Telegram
SnowLuma 是一个基于 TypeScript 的协议转换框架,旨在为 QQ 客户端提供 OneBot v11 标准接口,支持 WebSocket/HTTP 适配、多账号并行及 WebUI 管理。
特性
- OneBot v11 兼容:支持文本、音视频、Markdown、JSON 等消息格式。
- 高性能架构:TypeScript 全栈,基于 pnpm monorepo 管理,核心逻辑分离。
- 现代化管理:内置 WebUI 面板,支持实时日志、密码热更、多账号管理。
- 多适配器支持:WebSocket (Server/Client)、HTTP (Server/Post)。
- 数据持久化:使用 SQLite 存储好友、群组等关系数据。
快速开始
- 从 Releases 下载最新发布包并解压。
- 运行
./launcher.bat(Windows) 或./launcher.sh(Linux)。 - 访问
http://localhost:5099(初始账号admin,密码见控制台输出)。
鸣谢
参考了 LagrangeV2 的协议定义与 NapCatQQ 的实现思路。
Languages
TypeScript
98.9%
CSS
0.5%
JavaScript
0.5%