mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
perf: 统一判断方式
This commit is contained in:
parent
a9104eb2da
commit
0b1af7df91
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user