mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 21:52:56 +08:00
🎨 message-build判断优化
This commit is contained in:
parent
f1b2ed6350
commit
a767ad6a51
@ -63,7 +63,7 @@ class MessageUtils:
|
||||
elif isinstance(msg, str):
|
||||
if msg.startswith("base64://"):
|
||||
message_list.append(Image(raw=BytesIO(base64.b64decode(msg[9:]))))
|
||||
elif msg.startswith("http"):
|
||||
elif msg.startswith("http://"):
|
||||
message_list.append(Image(url=msg))
|
||||
else:
|
||||
message_list.append(Text(msg))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user