From babf2237455043135915d14725334516e20a8abe Mon Sep 17 00:00:00 2001 From: yxw <3360776475@qq.com> Date: Fri, 28 Feb 2025 14:22:59 +0800 Subject: [PATCH] fix bug #621 --- .../platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py index 94b10e3d2..cbaa5137b 100644 --- a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +++ b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py @@ -75,7 +75,7 @@ class AiocqhttpAdapter(Platform): else: abm.type = MessageType.FRIEND_MESSAGE if self.unique_session and abm.type == MessageType.GROUP_MESSAGE: - abm.session_id = abm.sender.user_id + "_" + str(event.group_id) + abm.session_id = str(abm.sender.user_id) + "_" + str(event.group_id) abm.message_str = '' abm.message = [] abm.timestamp = int(time.time())