mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
🐛 修复获取群组时会修改群组插件关闭状态 (#1869)
* 🐛 修复获取群组时会修改群组插件关闭状态 * ✨ 支持https图片地址转换 * ✨ 支持https图片地址转换 * 🎨 移除多余导入 * 🎨 优化GroupConsole设置插件默认状态代码结构 * 🎨 优化群组表代码结构 * ⚡ 移除build_message的https默认转图片
This commit is contained in:
@@ -64,8 +64,6 @@ class MessageUtils:
|
||||
if isinstance(msg, str):
|
||||
if msg.startswith("base64://"):
|
||||
message_list.append(Image(raw=BytesIO(base64.b64decode(msg[9:]))))
|
||||
elif msg.startswith("http://"):
|
||||
message_list.append(Image(url=msg))
|
||||
else:
|
||||
message_list.append(Text(msg))
|
||||
elif isinstance(msg, int | float):
|
||||
|
||||
Reference in New Issue
Block a user