mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-31 06:56:39 +00:00 
			
		
		
		
	📝 update doc
This commit is contained in:
		| @@ -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)` | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -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` | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user