From b970a42d07411bddb3391d9a8559e0dbcb4fbfdd Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Tue, 25 Apr 2023 10:26:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugin.py):=20send=5Fmessage=E5=B0=81?= =?UTF-8?q?=E8=A3=85=E5=AE=9E=E7=8E=B0=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/plugin/host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugin/host.py b/pkg/plugin/host.py index 49609e07..bea28cbf 100644 --- a/pkg/plugin/host.py +++ b/pkg/plugin/host.py @@ -283,11 +283,11 @@ class PluginHost: def send_person_message(self, person, message): """发送私聊消息""" - asyncio.run(self.get_bot().send_friend_message(person, message)) + asyncio.run(self.get_bot_adapter().send_message("person", person, message)) def send_group_message(self, group, message): """发送群消息""" - asyncio.run(self.get_bot().send_group_message(group, message)) + asyncio.run(self.get_bot_adapter().send_message("group", group, message)) def notify_admin(self, message): """通知管理员"""