diff --git a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py index 52957e8b1..79501e32d 100644 --- a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +++ b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py @@ -58,7 +58,7 @@ class AiocqhttpAdapter(Platform): elif event['message_type'] == 'private': abm.type = MessageType.FRIEND_MESSAGE - if self.unique_session: + if self.unique_session and abm.type == MessageType.GROUP_MESSAGE: abm.session_id = abm.sender.user_id + "_" + str(event.group_id) # 也保留群组 id else: abm.session_id = str(event.group_id) if abm.type == MessageType.GROUP_MESSAGE else abm.sender.user_id