From eae0d6c422ec7e69399faa2a7e5803003ac64800 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Mon, 15 May 2023 20:09:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=A5=87=E6=80=AA=E7=9A=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/platform/qq.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/model/platform/qq.py b/model/platform/qq.py index 29302d7dc..09ea8e0cc 100644 --- a/model/platform/qq.py +++ b/model/platform/qq.py @@ -66,9 +66,7 @@ class QQ: 提供给插件的发送QQ消息接口, 不用在外部await。 参数说明:第一个参数可以是消息对象,也可以是QQ群号。第二个参数是消息内容(消息内容可以是消息链列表,也可以是纯文字信息)。 ''' - if isinstance(to, int): - try: - asyncio.run_coroutine_threadsafe(self.send_qq_msg(message_obj, res), self.gocq_loop).result() + asyncio.run_coroutine_threadsafe(self.send_qq_msg(to, res), self.gocq_loop).result() except BaseException as e: raise e \ No newline at end of file