💡 add matcher docstring

This commit is contained in:
yanyongyu
2020-10-06 17:03:05 +08:00
parent 9f8d009309
commit 727eef9a34
5 changed files with 255 additions and 29 deletions

View File

@ -85,12 +85,15 @@ class BaseBot(abc.ABC):
raise NotImplementedError
@abc.abstractmethod
async def send(self, *args, **kwargs):
async def send(self, event: "BaseEvent",
message: Union[str, "BaseMessage",
"BaseMessageSegment"], **kwargs):
"""
:说明:
调用机器人基础发送消息接口
:参数:
* ``*args``
* ``event: Event``: 上报事件
* ``message: Union[str, Message, MessageSegment]``: 要发送的消息
* ``**kwargs``
"""
raise NotImplementedError