✨ 提供database.json配置文件

This commit is contained in:
HibiKier
2024-08-10 12:10:53 +08:00
parent d05b1fb9b2
commit ab05d8a1b5
4 changed files with 57 additions and 17 deletions
+5 -1
View File
@@ -28,7 +28,11 @@ class MessageUtils:
返回:
list[Text | Text]: 构造完成的消息列表
"""
is_bytes = driver.config.image_to_bytes == "True"
is_bytes = False
try:
is_bytes = driver.config.image_to_bytes in ["True", "true"]
except AttributeError:
pass
message_list = []
for msg in msg_list:
if isinstance(msg, (Image, Text, At)):