Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Update docs for v3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stdrc committed Nov 22, 2017
1 parent fe14dc3 commit b76d18e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/3.3/Post.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ X-Signature: sha1=f9ddd4863ace61e64f462d41ca311e3d2c1176e2
| `post_type` | string | `"message"` | 上报类型 |
| `message_type` | string | `"private"` | 消息类型 |
| `sub_type` | string | `"friend"``"group"``"discuss"``"other"` | 消息子类型,如果是好友则是 `"friend"`,如果从群或讨论组来的临时会话则分别是 `"group"``"discuss"` |
| `message_id` | number | - | (v3.3.1 新增)消息 ID |
| `user_id` | number | - | 发送者 QQ 号 |
| `message` | string/array | - | 消息内容 |
| `font` | number | - | 字体 |
Expand All @@ -90,6 +91,7 @@ X-Signature: sha1=f9ddd4863ace61e64f462d41ca311e3d2c1176e2
| `post_type` | string | `"message"` | 上报类型 |
| `message_type` | string | `"group"` | 消息类型 |
| `sub_type` | string | `"normal"``"anonymous"``"notice"` | 消息子类型,正常消息是 `"normal"`,匿名消息是 `"anonymous"`,系统提示(如「管理员已禁止群内匿名聊天」)是 `"notice"` |
| `message_id` | number | - | (v3.3.1 新增)消息 ID |
| `group_id` | number | - | 群号 |
| `user_id` | number | - | 发送者 QQ 号 |
| `anonymous` | string | - | 匿名用户显示名 |
Expand All @@ -104,6 +106,7 @@ X-Signature: sha1=f9ddd4863ace61e64f462d41ca311e3d2c1176e2
| `reply` | string/array | - | 要回复的内容 |
| `auto_escape` | boolean | `true`, `false` | 消息内容是否作为纯文本发送(即不解析 CQ 码),`message` 数据类型为 `array` 时无效 |
| `at_sender` | boolean | `true`, `false` | 是否要在回复开头 at 发送者(自动添加),默认为 `true`,发送者是匿名用户时无效 |
| `delete` | boolean | `true`, `false` | (v3.3.1 新增)撤回该条消息 |
| `kick` | boolean | `true`, `false` | 把发送者踢出群组(需要登录号权限足够),**不拒绝**此人后续加群请求,默认为 `false`,发送者是匿名用户时无效 |
| `ban` | boolean | `true`, `false` | 把发送者禁言 30 分钟(需要登录号权限足够),对匿名用户也有效,不支持指定禁言时长(如需指定,请调用相应 API),默认为 `false` |

Expand All @@ -115,6 +118,7 @@ X-Signature: sha1=f9ddd4863ace61e64f462d41ca311e3d2c1176e2
| ----- | ------- | ------- | --- |
| `post_type` | string | `"message"` | 上报类型 |
| `message_type` | string | `"discuss"` | 消息类型 |
| `message_id` | number | - | (v3.3.1 新增)消息 ID |
| `discuss_id` | number | - | 讨论组 ID |
| `user_id` | number | - | 发送者 QQ 号 |
| `message` | string/array | - | 消息内容 |
Expand Down

0 comments on commit b76d18e

Please sign in to comment.