📝 update api docs

This commit is contained in:
rmuchan 2021-06-17 02:20:46 +00:00
parent f87c23c9a7
commit c8e494ca83
4 changed files with 9 additions and 4 deletions

View File

@ -260,7 +260,7 @@ await bot.send_msg(message="hello world")
## _class_ `MessageSegment`
基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.T_Message`]
基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.TM`]
消息段基类
@ -285,7 +285,7 @@ await bot.send_msg(message="hello world")
## _class_ `Message`
基类:`List`[`nonebot.adapters._base.T_MessageSegment`], `abc.ABC`
基类:`List`[`nonebot.adapters._base.TMS`], `abc.ABC`
消息数组

View File

@ -208,7 +208,7 @@ sidebarDepth: 0
## _class_ `MessageSegment`
基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.T_Message`]
基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.TM`]
钉钉 协议 MessageSegment 适配。具体方法参考协议消息段类型或源码。

View File

@ -727,7 +727,7 @@ mirai-api-http 正向 Websocket 协议 Bot 适配。
## _class_ `MessageSegment`
基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.T_Message`]
基类:`Mapping`, `abc.ABC`, `Generic`[`nonebot.adapters._base.TM`]
Mirai-API-HTTP 协议 MessageSegment 适配。具体方法参考 [mirai-api-http 消息类型](https://github.com/project-mirai/mirai-api-http/blob/master/docs/MessageType.md)

View File

@ -82,3 +82,8 @@ Quart 使用的 logger
### `run(host=None, port=None, *, app=None, **kwargs)`
使用 `uvicorn` 启动 Quart
## _class_ `WebSocket`
基类:[`nonebot.drivers.WebSocket`](README.md#nonebot.drivers.WebSocket)