mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
perf: 统一判断方式
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user