🎨 message-build判断优化

This commit is contained in:
HibiKier 2024-11-22 16:58:14 +08:00
parent f1b2ed6350
commit a767ad6a51

View File

@ -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))