修复了使用Image.fromBytes等包装的图片消息链无法通过qq官方机器人适配器发送的bug

This commit is contained in:
shuiping233
2025-03-11 21:17:08 +08:00
parent 239f3c40be
commit 017b010206

View File

@@ -130,7 +130,7 @@ class QQOfficialMessageEvent(AstrMessageEvent):
"base64://", ""
)
else:
image_base64 = file_to_base64(i.file).replace("base64://", "")
image_base64 = i.file.replace("base64://", "")
image_file_path = i.file
else:
logger.debug(f"qq_official 忽略 {i.type}")