fix: QQ 图片发送不了 #246

This commit is contained in:
Soulter
2025-01-21 16:12:10 +08:00
parent e2117e690a
commit 7d6beb4141
@@ -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