feat: 多层合并完成

This commit is contained in:
手瓜一十雪
2024-08-06 18:55:36 +08:00
parent 54325502b6
commit e39d5c4fe9
4 changed files with 21 additions and 13 deletions

View File

@@ -110,7 +110,9 @@ export class NTQQMsgApi {
});
return ret;
}
static async getMsgsByMsgId(peer: Peer, msgIds: string[]) {
static async getMsgsByMsgId(peer: Peer | undefined, msgIds: string[] | undefined) {
if (!peer) throw new Error('peer is not allowed');
if (!msgIds) throw new Error('msgIds is not allowed');
return await napCatCore.session.getMsgService().getMsgsByMsgId(peer, msgIds);
}
static async getSingleMsg(peer: Peer, seq: string) {