fix(onebot): identify QQ automatic replies in private messages

Refs #663
This commit is contained in:
DrSmoothl committed 2026-11-06 22:49:52 +08:00
1 parent e031cd4108
commit b0612d8d12
17 files changed
+128 -6

No files matched your search

+2
View File
@@ -18,6 +18,8 @@ export interface OneBotSender extends JsonObject {
export interface OneBotPrivateMessageEvent extends OneBotBaseEvent {
post_type: 'message' | 'message_sent';
message_type: 'private';
/** Present only when QQ marks this message as an automatic reply. */
auto_reply?: true;
sub_type: string;
message_id: number;
message_seq?: number;
+2 -1
View File
@@ -1,3 +1,4 @@
import type { OneBotPrivateMessageEvent } from './events.js';
import type { JsonArray, JsonObject, JsonValue } from './json.js';
export interface QzoneCommentReply {
@@ -85,7 +86,7 @@ export interface GroupMessageHistory {
}
export interface FriendMessageHistory {
messages: JsonObject[];
messages: Array<JsonObject & Pick<OneBotPrivateMessageEvent, 'auto_reply'>>;
}
export interface GroupNoticeInfo {