From 21966bfb6973f942c16ec256ebb6bedaf696c060 Mon Sep 17 00:00:00 2001 From: ElvisChenML Date: Tue, 9 Jul 2024 17:04:11 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20pkg\provider\entities.py\get=5Fcontent?= =?UTF-8?q?=5Fmirai=5Fmessage=5Fchain=E4=B8=ADce.type=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/provider/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/entities.py b/pkg/provider/entities.py index 82c68ad..5000072 100644 --- a/pkg/provider/entities.py +++ b/pkg/provider/entities.py @@ -95,7 +95,7 @@ class Message(pydantic.BaseModel): for ce in self.content: if ce.type == 'text': mc.append(mirai.Plain(ce.text)) - elif ce.type == 'image': + elif ce.type == 'image_url': if ce.image_url.url.startswith("http"): mc.append(mirai.Image(url=ce.image_url.url)) else: # base64