fix(plugin.py): 兼容性问题

This commit is contained in:
Rock Chin 2023-04-25 10:27:07 +08:00
parent b970a42d07
commit eb41cf5481

View File

@ -283,11 +283,11 @@ class PluginHost:
def send_person_message(self, person, message):
"""发送私聊消息"""
asyncio.run(self.get_bot_adapter().send_message("person", person, message))
self.get_bot_adapter().send_message("person", person, message)
def send_group_message(self, group, message):
"""发送群消息"""
asyncio.run(self.get_bot_adapter().send_message("group", group, message))
self.get_bot_adapter().send_message("group", group, message)
def notify_admin(self, message):
"""通知管理员"""