fix(onebot): identify QQ automatic replies in private messages
Refs #663
This commit is contained in:
17 files changed
+128
-6
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user