mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
📝 fix sphinx build errors
This commit is contained in:
@ -245,12 +245,12 @@ message += MessageSegment.atDingtalkIds(event.senderId)
|
||||
|
||||
### _static_ `extension(dict_)`
|
||||
|
||||
"标记 text 文本的 extension 属性,需要与 text 消息段相加。
|
||||
标记 text 文本的 extension 属性,需要与 text 消息段相加。
|
||||
|
||||
|
||||
### _static_ `code(code_language, code)`
|
||||
|
||||
"发送 code 消息段
|
||||
发送 code 消息段
|
||||
|
||||
|
||||
### _static_ `markdown(title, text)`
|
||||
@ -274,7 +274,7 @@ message += MessageSegment.atDingtalkIds(event.senderId)
|
||||
* `btnOrientation`: 0:按钮竖直排列 1:按钮横向排列
|
||||
|
||||
|
||||
* `btns`: [{ "title": title, "actionURL": actionURL }, ...]
|
||||
* `btns`: `[{ "title": title, "actionURL": actionURL }, ...]`
|
||||
|
||||
|
||||
|
||||
@ -286,7 +286,7 @@ message += MessageSegment.atDingtalkIds(event.senderId)
|
||||
* **参数**
|
||||
|
||||
|
||||
* `links`: [{ "title": xxx, "messageURL": xxx, "picURL": xxx }, ...]
|
||||
* `links`: `[{ "title": xxx, "messageURL": xxx, "picURL": xxx }, ...]`
|
||||
|
||||
|
||||
|
||||
|
@ -292,7 +292,7 @@ API中为了使代码更加整洁, 我们采用了与PEP8相符的命名规则
|
||||
* **参数**
|
||||
|
||||
|
||||
* `type: str`: "friend" 或 "group" 或 "temp"
|
||||
* `type: str`: “friend” 或 “group” 或 “temp”
|
||||
|
||||
|
||||
* `img: BytesIO`: 图片的BytesIO对象
|
||||
@ -311,7 +311,7 @@ API中为了使代码更加整洁, 我们采用了与PEP8相符的命名规则
|
||||
* **参数**
|
||||
|
||||
|
||||
* `type: str`: 当前仅支持 "group"
|
||||
* `type: str`: 当前仅支持 “group”
|
||||
|
||||
|
||||
* `voice: BytesIO`: 语音的BytesIO对象
|
||||
|
@ -262,12 +262,12 @@ Reverse Driver 基类。将后端框架封装,以满足适配器使用。
|
||||
|
||||
### `http_version`
|
||||
|
||||
One of "1.0", "1.1" or "2".
|
||||
One of `"1.0"`, `"1.1"` or `"2"`.
|
||||
|
||||
|
||||
### `scheme`
|
||||
|
||||
URL scheme portion (likely "http" or "https").
|
||||
URL scheme portion (likely `"http"` or `"https"`).
|
||||
|
||||
|
||||
### `path`
|
||||
@ -279,7 +279,7 @@ decoded into characters.
|
||||
|
||||
### `query_string`
|
||||
|
||||
URL portion after the ?, percent-encoded.
|
||||
URL portion after the `?`, percent-encoded.
|
||||
|
||||
|
||||
### `headers`
|
||||
@ -314,7 +314,7 @@ The HTTP method name, uppercased.
|
||||
|
||||
Body of the request.
|
||||
|
||||
Optional; if missing defaults to b"".
|
||||
Optional; if missing defaults to `b""`.
|
||||
|
||||
|
||||
### _property_ `type`
|
||||
|
Reference in New Issue
Block a user