From 15b85f735d7e4547860c623842a96fc69fd6a6f0 Mon Sep 17 00:00:00 2001 From: idranme Date: Fri, 20 Sep 2024 19:08:22 +0800 Subject: [PATCH] fix: `friend_add` event --- src/onebot11/entities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot11/entities.ts b/src/onebot11/entities.ts index 1ca1551..91a6632 100644 --- a/src/onebot11/entities.ts +++ b/src/onebot11/entities.ts @@ -395,7 +395,7 @@ export namespace OB11Entities { ) } } - if (grayTipElement.xmlElement?.templId === '10229') { + if (grayTipElement.xmlElement?.templId === '10229' || grayTipElement.jsonGrayTipElement?.busiId === '19324') { const uin = +msg.peerUin || +(await ctx.ntUserApi.getUinByUid(msg.peerUid)) return new OB11FriendAddNoticeEvent(uin) }