perf: 统一判断方式

This commit is contained in:
RockChinQ 2024-05-17 17:05:20 +08:00
parent a9104eb2da
commit 0b1af7df91

View File

@ -31,7 +31,7 @@ class AiocqhttpMessageConverter(adapter.MessageConverter):
msg_time = msg.time
elif type(msg) is mirai.Image:
arg = ''
if hasattr(msg, "base64"):
if msg.base64:
arg = msg.base64
msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}"))
elif msg.url: