diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 5708bad5..4da66848 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -467,6 +467,10 @@ export class NapCatOneBot11Adapter { } private async handleMsg(message: RawMessage, network: Array) { + // 过滤无效消息 + if (message.msgType === NTMsgType.KMSGTYPENULL) { + return; + } try { const ob11Msg = await this.apis.MsgApi.parseMessageV2(message, this.configLoader.configData.parseMultMsg); if (ob11Msg) {