📝 update doc

This commit is contained in:
yanyongyu
2021-04-01 20:27:27 +08:00
parent f0a6ff4627
commit e03e3f6130
50 changed files with 123 additions and 5 deletions

View File

@ -27,7 +27,7 @@ Driver 对象
Config 配置对象
### `_call_api_hook`
### `_calling_api_hook`
* **类型**
@ -42,6 +42,21 @@ Config 配置对象
### `_called_api_hook`
* **类型**
`Set[T_CalledAPIHook]`
* **说明**
call_api 后执行的函数
### _abstract_ `__init__(connection_type, self_id, *, websocket=None)`

View File

@ -78,6 +78,38 @@ sidebarDepth: 0
## `T_CallingAPIHook`
* **类型**
`Callable[[Bot, str, Dict[str, Any]], Awaitable[None]]`
* **说明**
`bot.call_api` 时执行的函数
## `T_CalledAPIHook`
* **类型**
`Callable[[Bot, Optional[Exception], str, Dict[str, Any], Any], Awaitable[None]]`
* **说明**
`bot.call_api` 后执行的函数,参数分别为 bot, exception, api, data, result
## `T_EventPreProcessor`