From d56f2e0dbc089a34f5b7ec28d3c0f161eaab3617 Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Sun, 8 Feb 2026 19:05:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20raw=5Fmessage=20?= =?UTF-8?q?=E5=92=8C=20user=5Fid=20=E5=AD=97=E6=AE=B5=E4=BB=A5=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E6=B6=88=E6=81=AF=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/infrastructure/platform/adapters/onebot_adapter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/infrastructure/platform/adapters/onebot_adapter.py b/src/infrastructure/platform/adapters/onebot_adapter.py index 4ac0b2e..8ad7e36 100644 --- a/src/infrastructure/platform/adapters/onebot_adapter.py +++ b/src/infrastructure/platform/adapters/onebot_adapter.py @@ -224,6 +224,8 @@ class OneBotAdapter(PlatformAdapter): }, "message": message_chain, "group_id": msg.group_id, + "raw_message": msg.text_content, # 添加 raw_message 兼容字段 + "user_id": msg.sender_id, # 添加 user_id 兼容字段 } raw_messages.append(raw_msg)