mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
🎨 message-build判断优化
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user