mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🚨 auto fix by pre-commit hooks
This commit is contained in:
parent
f368c4df2e
commit
38e79345ec
@ -64,7 +64,7 @@ class MessageUtils:
|
||||
if isinstance(msg, str):
|
||||
if msg.startswith("base64://"):
|
||||
message_list.append(Image(raw=BytesIO(base64.b64decode(msg[9:]))))
|
||||
elif msg.startswith(("http://","https://")):
|
||||
elif msg.startswith(("http://", "https://")):
|
||||
message_list.append(Image(url=msg))
|
||||
else:
|
||||
message_list.append(Text(msg))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user