diff --git a/docs/api/adapters/README.md b/docs/api/adapters/README.md index ce0bc1d9..1a1dd85b 100644 --- a/docs/api/adapters/README.md +++ b/docs/api/adapters/README.md @@ -176,7 +176,7 @@ await bot.send_msg(message="hello world") ## _class_ `BaseEvent` -基类:`typing.Generic`, `abc.ABC` +基类:`abc.ABC`, `typing.Generic` Event 基类。提供上报信息的关键信息,其余信息可从原始上报消息获取。 @@ -187,7 +187,7 @@ Event 基类。提供上报信息的关键信息,其余信息可从原始上 * **参数** - * `raw_event: T`: 原始上报消息 + * `raw_event: Union[dict, T]`: 原始上报消息 diff --git a/docs/api/adapters/ding.md b/docs/api/adapters/ding.md new file mode 100644 index 00000000..10d0aa42 --- /dev/null +++ b/docs/api/adapters/ding.md @@ -0,0 +1,10 @@ +--- +contentSidebar: true +sidebarDepth: 0 +--- + +# NoneBot.adapters.ding 模块 + +## 钉钉群机器人 协议适配 + +协议详情请看: [钉钉文档](https://ding-doc.dingtalk.com/doc#/serverapi2/krgddi) diff --git a/docs/api/exception.md b/docs/api/exception.md index a4f58a82..42284e7e 100644 --- a/docs/api/exception.md +++ b/docs/api/exception.md @@ -164,3 +164,15 @@ sidebarDepth: 0 ## _exception_ `AdapterException` 基类:`Exception` + + +* **说明** + + 代表 Adapter 抛出的异常,所有的 Adapter 都要在内部继承自这个 Exception + + + +* **参数** + + + * `adapter_name: str`: 标识 adapter