diff --git a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py index 853ec2288..df8a00ae1 100644 --- a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +++ b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py @@ -221,6 +221,9 @@ class AiocqhttpAdapter(Platform): a = None if t == "text": current_text = "".join(m["data"]["text"] for m in m_group).strip() + if not current_text: + # 如果文本段为空,则跳过 + continue message_str += current_text a = ComponentTypes[t](text=current_text) # noqa: F405 abm.message.append(a)