From 725782061021106fbae2a67320e0d1eefdf28bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Thu, 30 Mar 2023 00:13:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D`ntchat=5Fsend?= =?UTF-8?q?`=E4=B8=AD=E7=9A=84`at=5Flist`=E8=B0=83=E7=94=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/client.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/GenshinUID/client.py b/GenshinUID/client.py index 8cf71085..0b4263f4 100644 --- a/GenshinUID/client.py +++ b/GenshinUID/client.py @@ -366,15 +366,13 @@ async def ntchat_send( ): async def _send(content: Optional[str], image: Optional[str]): if content: + result = {} if at_list and target_type == 'group': for _ in at_list: content += '{$@}' - await bot.call_api( - 'send_text', - to_wxid=target_id, - content=content, - at_list=at_list, - ) + result['at_list'] = at_list + result['content'] = content + await bot.call_api('send_text', to_wxid=target_id, **result) if image: await bot.call_api( 'send_image',