mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 04:06:28 +08:00
📝 update api docs
This commit is contained in:
parent
e718f25c3f
commit
da62e012c2
@ -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]`: 原始上报消息
|
||||
|
||||
|
||||
|
||||
|
10
docs/api/adapters/ding.md
Normal file
10
docs/api/adapters/ding.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
contentSidebar: true
|
||||
sidebarDepth: 0
|
||||
---
|
||||
|
||||
# NoneBot.adapters.ding 模块
|
||||
|
||||
## 钉钉群机器人 协议适配
|
||||
|
||||
协议详情请看: [钉钉文档](https://ding-doc.dingtalk.com/doc#/serverapi2/krgddi)
|
@ -164,3 +164,15 @@ sidebarDepth: 0
|
||||
## _exception_ `AdapterException`
|
||||
|
||||
基类:`Exception`
|
||||
|
||||
|
||||
* **说明**
|
||||
|
||||
代表 Adapter 抛出的异常,所有的 Adapter 都要在内部继承自这个 Exception
|
||||
|
||||
|
||||
|
||||
* **参数**
|
||||
|
||||
|
||||
* `adapter_name: str`: 标识 adapter
|
||||
|
Loading…
Reference in New Issue
Block a user