mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 20:36:08 +00:00
perf: 统一判断方式
This commit is contained in:
@@ -31,7 +31,7 @@ class AiocqhttpMessageConverter(adapter.MessageConverter):
|
|||||||
msg_time = msg.time
|
msg_time = msg.time
|
||||||
elif type(msg) is mirai.Image:
|
elif type(msg) is mirai.Image:
|
||||||
arg = ''
|
arg = ''
|
||||||
if hasattr(msg, "base64"):
|
if msg.base64:
|
||||||
arg = msg.base64
|
arg = msg.base64
|
||||||
msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}"))
|
msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}"))
|
||||||
elif msg.url:
|
elif msg.url:
|
||||||
|
|||||||
Reference in New Issue
Block a user