feat(onebot): expose bidirectional message history

Add reverse_order to group and private history actions, preserve latest-page behavior without an anchor, and keep local fallback results chronologically ordered.

Key self-sent private messages and reply targets by the conversation peer, reject cross-conversation anchors, and include request context when a server fetch falls back to local history.

Refs #229
This commit is contained in:
DrSmoothl committed 2026-07-17 17:45:30 +08:00
1 parent afa4ccc5e0
commit fadc7ce316
17 files changed
+468 -70

No files matched your search

+3
View File
@@ -228,6 +228,9 @@ export interface QQEvent {
export interface FriendMessage extends QQEvent {
kind: 'friend_message';
senderUin: number;
/** The other participant in this private conversation. Differs from
* senderUin for messages sent by the logged-in account. */
peerUin?: number;
/** Stable QQ UID carried by ResponseHead. Kept internally so the identity
* index can preserve the exact C2C peer instead of re-resolving its UIN. */
senderUid?: string;