From 8f77392ca6609df4ae523882ff8032bf1581d9a2 Mon Sep 17 00:00:00 2001 From: ishkong <19740260+ishkong@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=8E=B7=E5=8F=96=E4=BD=BF=E7=94=A8=E6=8B=89=E6=A0=BC?= =?UTF-8?q?=E6=9C=97=E6=97=A5=E6=8E=A5=E6=94=B6=E7=9A=84=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E4=B8=AD=E5=9B=BE=E7=89=87=E7=9A=84=E5=9C=B0=E5=9D=80=20(#614)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GenshinUID/__init__.py b/GenshinUID/__init__.py index f1b4d483..00bf4cd1 100644 --- a/GenshinUID/__init__.py +++ b/GenshinUID/__init__.py @@ -619,6 +619,8 @@ def convert_message(_msg: Any, message: List[Message], index: int): logger.debug('[OB12图片]', _msg.data['file_id']) elif 'path' in _msg.data: message.append(Message('image', _msg.data['path'])) + elif 'file' in _msg.data and 'url' not in _msg.data: + message.append(Message('image', _msg.data['file'])) else: message.append(Message('image', _msg.data['url'])) elif _msg.type == 'at':