From e3d8c8e94078cb924712297ad3179dbcfd5c4814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 29 Sep 2025 16:39:37 +0800 Subject: [PATCH] fix: #1260 --- src/onebot/api/msg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index 0a3be50d..2a510df4 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -578,7 +578,7 @@ export class OneBotMsgApi { }; } - if (!context.peer || context.peer.chatType == ChatType.KCHATTYPEC2C) return undefined; + if (!context.peer || !atQQ || context.peer.chatType == ChatType.KCHATTYPEC2C) return undefined; // 过滤掉空atQQ if (atQQ === 'all') return at(atQQ, atQQ, NTMsgAtType.ATTYPEALL, '全体成员'); const atMember = await this.core.apis.GroupApi.getGroupMember(context.peer.peerUid, atQQ); if (atMember) {