feat: support render_mode now

This commit is contained in:
JustSong
2024-11-10 12:21:05 +08:00
parent 37b8562f0f
commit 939e956424
3 changed files with 23 additions and 9 deletions
+4
View File
@@ -222,6 +222,10 @@ proxy_send_timeout 300s;
1. `@all`:推送给所有用户。
2. `user1|user2|user3`:推送给多个用户,用户之间使用 `|` 分隔。
8. `async`:选填,如果设置为 `true` 则消息推送将在后台异步进行,返回结果包含 `uuid` 字段,可用于后续[获取消息发送状态](./docs/API.md#通过消息 UUID 获取消息发送状态)。
9. `render_mode`:选填,
1. 如果设置为 `code`,则消息体会被自动嵌套在代码块中进行渲染;
2. 如果设置为 `raw`,则不进行 Markdown 解析;
3. 默认 `markdown`,即进行 Markdown 解析。
3. `POST` 请求方式:字段与上面 `GET` 请求方式保持一致。
+ 如果发送的是 JSONHTTP Header `Content-Type` 请务必设置为 `application/json`,否则一律按 Form 处理。
+ POST 请求方式下的 `token` 字段也可以通过 URL 查询参数进行设置。