fix(onebot): correct private message history (#256)

Use the C2C roam cursor and canonical NT sequence for bidirectional history. Persist direction-aware recall tombstones so recalled messages cannot reappear.
This commit is contained in:
DrSmoothl committed 2026-07-20 22:25:13 +08:00
1 parent 88216ce644
commit 4aa2cd1693
37 files changed
+1853 -242

No files matched your search

+4 -2
View File
@@ -3247,7 +3247,7 @@
{
"name": "get_friend_msg_history",
"aliases": [],
"summary": "获取好友消息历史",
"summary": "获取好友消息历史(无锚点时从服务器获取最新双向记录)",
"returns": "{ messages }:好友消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。",
"returnsSchema": {
"type": "object",
@@ -3294,7 +3294,8 @@
"type": "integer",
"minimum": 0
},
"default": 20
"default": 20,
"desc": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存"
},
{
"name": "reverse_order",
@@ -3324,6 +3325,7 @@
"count": {
"type": "integer",
"minimum": 0,
"description": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存",
"default": 20
},
"reverse_order": {
+4 -2
View File
@@ -3250,7 +3250,7 @@ export const ACTIONS: CatalogAction[] = [
{
"name": "get_friend_msg_history",
"aliases": [],
"summary": "获取好友消息历史",
"summary": "获取好友消息历史(无锚点时从服务器获取最新双向记录)",
"returns": "{ messages }:好友消息事件对象数组(每项为 OneBot 消息事件,内部字段不固定)。",
"returnsSchema": {
"type": "object",
@@ -3297,7 +3297,8 @@ export const ACTIONS: CatalogAction[] = [
"type": "integer",
"minimum": 0
},
"default": 20
"default": 20,
"desc": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存"
},
{
"name": "reverse_order",
@@ -3327,6 +3328,7 @@ export const ACTIONS: CatalogAction[] = [
"count": {
"type": "integer",
"minimum": 0,
"description": "无锚点时从 QQ 服务器获取最新双向历史;服务器或身份解析失败时动作失败,不返回不完整的本地缓存",
"default": 20
},
"reverse_order": {