From a398c6f311f5120e539a665034f533fcf7a8e34e Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Fri, 8 Mar 2024 20:40:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B6=88=E6=81=AF=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=99=A8=E5=8F=AF=E6=89=A9=E5=B1=95=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/platform/adapter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/platform/adapter.py b/pkg/platform/adapter.py index 38c31fe2..5ce1db18 100644 --- a/pkg/platform/adapter.py +++ b/pkg/platform/adapter.py @@ -22,6 +22,8 @@ def adapter_class( class MessageSourceAdapter(metaclass=abc.ABCMeta): + """消息平台适配器基类""" + name: str bot_account_id: int @@ -40,7 +42,7 @@ class MessageSourceAdapter(metaclass=abc.ABCMeta): target_id: str, message: mirai.MessageChain ): - """发送消息 + """主动发送消息 Args: target_type (str): 目标类型,`person`或`group`