From 0b1af7df91d81c1faeb0e769c804bfc1dffa6509 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Fri, 17 May 2024 17:05:20 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=BB=9F=E4=B8=80=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/platform/sources/aiocqhttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/platform/sources/aiocqhttp.py b/pkg/platform/sources/aiocqhttp.py index fc3a89b..4946a1c 100644 --- a/pkg/platform/sources/aiocqhttp.py +++ b/pkg/platform/sources/aiocqhttp.py @@ -31,7 +31,7 @@ class AiocqhttpMessageConverter(adapter.MessageConverter): msg_time = msg.time elif type(msg) is mirai.Image: arg = '' - if hasattr(msg, "base64"): + if msg.base64: arg = msg.base64 msg_list.append(aiocqhttp.MessageSegment.image(f"base64://{arg}")) elif msg.url: