diff --git a/src/core/src/apis/msg.ts b/src/core/src/apis/msg.ts index 76e2faa6..143d1a22 100644 --- a/src/core/src/apis/msg.ts +++ b/src/core/src/apis/msg.ts @@ -67,6 +67,9 @@ setTimeout(() => { // }, 25000) export class NTQQMsgApi { + static async FetchLongMsg(peer: Peer, msgId: string) { + return napCatCore.session.getMsgService().fetchLongMsg(peer, msgId); + } static async getMsgEmojiLikesList(peer: Peer, msgSeq: string, emojiId: string, emojiType: string, count: number = 20) { //console.log(peer, msgSeq, emojiId, emojiType, count); return napCatCore.session.getMsgService().getMsgEmojiLikesList(peer, msgSeq, emojiId, emojiType, "", false, 20) @@ -100,7 +103,7 @@ export class NTQQMsgApi { filterMsgFromTime: '0', isReverseOrder: false, isIncludeCurrent: true, - pageLimit: 1, + pageLimit: count, }); return ret; } diff --git a/src/core/src/entities/msg.ts b/src/core/src/entities/msg.ts index d450931b..3f5d1ab8 100644 --- a/src/core/src/entities/msg.ts +++ b/src/core/src/entities/msg.ts @@ -731,10 +731,12 @@ export interface MultiForwardMsgElement { } export interface RawMessage { + parentMsgPeer: Peer; + parentMsgIdList:string[]; + id?: number;//扩展字段 用于处理OB11 ID guildId: string; msgRandom: string; - // int32, 自己维护的消息id - id?: number; + msgId: string; diff --git a/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts b/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts index 15f06947..15f1aa61 100644 --- a/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts +++ b/src/onebot11/action/go-cqhttp/GetGroupMsgHistory.ts @@ -37,7 +37,7 @@ export default class GoCQHTTPGetGroupMsgHistory extends BaseAction