diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py index 3037ab2d8..27880e548 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py @@ -222,8 +222,9 @@ class QQOfficialPlatformAdapter(Platform): ): return + # 私聊主动推送不需要 msg_id,见 https://github.com/AstrBotDevs/AstrBot/issues/7904 msg_id = self._session_last_message_id.get(session.session_id) - if not msg_id: + if not msg_id and session.message_type != MessageType.FRIEND_MESSAGE: logger.warning( "[QQOfficial] No cached msg_id for session: %s, skip send_by_session", session.session_id,