From 2a7c02af8ea4ede41fea3039f1ca97db821abe56 Mon Sep 17 00:00:00 2001 From: Weilong Liao <37870767+Soulter@users.noreply.github.com> Date: Mon, 6 Jul 2026 23:48:30 +0800 Subject: [PATCH] fix: remove qq official reply id on proactive fallback so oversized passive replies can succeed via proactive sending (#9169) --- .../core/platform/sources/qqofficial/qqofficial_message_event.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py index 1e7d4f96e..e80c8296a 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py @@ -502,6 +502,7 @@ class QQOfficialMessageEvent(AstrMessageEvent): logger.info("[QQOfficial] 回复消息失败: %s, 尝试使用主动发送接口。", err) if payload.get("msg_id"): fallback_payload = payload.copy() + fallback_payload.pop("msg_id", None) try: ret = await send_func(fallback_payload) logger.info("[QQOfficial] 使用主动发送接口发送成功。")