From b068013343dcb8c811266a800a7d4268593244d2 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 11 Feb 2025 01:25:17 -0500 Subject: [PATCH] perf: better handle in qq official send --- .../platform/sources/qqofficial/qqofficial_message_event.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py index ef66486bf..b21083c36 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py @@ -30,6 +30,9 @@ class QQOfficialMessageEvent(AstrMessageEvent): plain_text, image_base64, image_path = await QQOfficialMessageEvent._parse_to_qqofficial(self.send_buffer) + if not plain_text and not image_base64 and not image_path: + return + ref = None for i in self.send_buffer.chain: if isinstance(i, Reply):