diff --git a/pkg/platform/sources/aiocqhttp.py b/pkg/platform/sources/aiocqhttp.py index 8253159..4946a1c 100644 --- a/pkg/platform/sources/aiocqhttp.py +++ b/pkg/platform/sources/aiocqhttp.py @@ -31,13 +31,15 @@ class AiocqhttpMessageConverter(adapter.MessageConverter): msg_time = msg.time elif type(msg) is mirai.Image: arg = '' - - if msg.url: + if msg.base64: + arg = msg.base64 + msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}")) + elif msg.url: arg = msg.url + msg_list.append(aiocqhttp.MessageSegment.image(arg)) elif msg.path: arg = msg.path - - msg_list.append(aiocqhttp.MessageSegment.image(arg)) + msg_list.append(aiocqhttp.MessageSegment.image(arg)) elif type(msg) is mirai.At: msg_list.append(aiocqhttp.MessageSegment.at(msg.target)) elif type(msg) is mirai.AtAll: