From 7d6beb4141b46c2e679d91d2e6fca89a89c252ff Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 21 Jan 2025 16:12:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20QQ=20=E5=9B=BE=E7=89=87=E5=8F=91?= =?UTF-8?q?=E9=80=81=E4=B8=8D=E4=BA=86=20#246?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/sources/aiocqhttp/aiocqhttp_message_event.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py index 74719845f..b218057df 100644 --- a/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +++ b/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py @@ -28,7 +28,9 @@ class AiocqhttpMessageEvent(AstrMessageEvent): elif segment.file and segment.file.startswith("http"): image_file_path = await download_image_by_url(segment.file) image_base64 = file_to_base64(image_file_path) - d['data']['file'] = image_base64 + d['data'] = { + 'file': image_base64, + } ret.append(d) return ret