From aa84556204377b4580392f63949a427f328a8836 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 11 May 2025 19:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=AE=A2=E6=9C=8D=E4=B8=8B=E6=8E=A5=E6=94=B6=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=97=B6=E5=8F=AF=E8=83=BD=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #1504 --- astrbot/core/platform/sources/wecom/wecom_adapter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/platform/sources/wecom/wecom_adapter.py b/astrbot/core/platform/sources/wecom/wecom_adapter.py index b9139ec3a..587748b6c 100644 --- a/astrbot/core/platform/sources/wecom/wecom_adapter.py +++ b/astrbot/core/platform/sources/wecom/wecom_adapter.py @@ -302,6 +302,7 @@ class WecomPlatformAdapter(Platform): abm.sender = MessageMember(external_userid, external_userid) abm.session_id = external_userid abm.type = MessageType.FRIEND_MESSAGE + abm.message_id = msg.get("msgid", uuid.uuid4().hex[:8]) if msgtype == "text": text = msg.get("text", {}).get("content", "").strip() abm.message = [Plain(text=text)]