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