From 4b2785c5eb9870661617c67cfab600777b4ba84d Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Wed, 3 Jul 2024 22:36:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20QQ=20=E5=AE=98=E6=96=B9=20API=20?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=AF=86=E5=88=AB=E5=8A=9F=E8=83=BD=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=20(#825)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/platform/sources/qqbotpy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/platform/sources/qqbotpy.py b/pkg/platform/sources/qqbotpy.py index 0af6e65d..faa5f107 100644 --- a/pkg/platform/sources/qqbotpy.py +++ b/pkg/platform/sources/qqbotpy.py @@ -198,7 +198,6 @@ class OfficialMessageConverter(adapter_model.MessageConverter): bot_account_id: int = 0, ) -> mirai.MessageChain: yiri_msg_list = [] - # 存id yiri_msg_list.append( @@ -218,7 +217,7 @@ class OfficialMessageConverter(adapter_model.MessageConverter): yiri_msg_list.append(mirai.At(target=mention.id)) for attachment in message.attachments: - if attachment.content_type == "image": + if attachment.content_type.startswith("image"): yiri_msg_list.append(mirai.Image(url=attachment.url)) else: logging.warning(