From c9b864ca54adf6e446dd936b0ce6d12aecb51432 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Wed, 23 Oct 2024 15:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E8=BD=AC=E5=8F=91=E5=9C=A8bytes=E4=BC=A0=E8=BE=93?= =?UTF-8?q?=E4=B8=8B=E5=9B=BE=E7=89=87=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/utils/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/utils/message.py b/zhenxun/utils/message.py index 342967773..38fcdacdf 100644 --- a/zhenxun/utils/message.py +++ b/zhenxun/utils/message.py @@ -138,7 +138,7 @@ def template2forward(cls, msg_list: list[UniMessage], uni: str) -> list[dict]: if isinstance(r, Text): s += str(r) elif isinstance(r, Image): - if v := r.url or r.path: + if v := r.url or r.path or r.raw: s += MessageSegment.image(v) elif isinstance(r_list, Image): if v := r_list.url or r_list.path: