Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme committed Sep 4, 2024
1 parent 4e3ca36 commit cda4743
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 17 deletions.
1 change: 1 addition & 0 deletions docs/zh-CN/develop/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@
| get_group_system_msg ||
| get_group_at_all_remain ||
| get_group_root_files ||
| _send_group_notice ||
52 changes: 38 additions & 14 deletions docs/zh-CN/develop/extends_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,15 @@
```
:::

::: details 设置头像
`/set_qq_avatar`
::: details 设置头像 `/set_qq_avatar`
```json5
{
"file": "file://D:/1.jpg" // 支持http://, base64://
}
```
:::

::: details 获取已过滤的加群通知

`/get_group_ignore_add_request`
::: details 获取已过滤的加群通知 `/get_group_ignore_add_request`

return

Expand All @@ -68,9 +65,7 @@ return
相比于 go-cq 多了个 `target_id` 字段表示发送的目标QQ号或者群号
:::

::: details 下载收到的群文件或私聊文件

`/get_file`
::: details 下载收到的群文件或私聊文件 `/get_file`

```json5
{
Expand All @@ -96,13 +91,14 @@ return
```
:::

::: details /download_file
与 gocq 用法一样,但是支持 base64 参数用于直接下载 base64 编码的文件
::: details 支持 base64 参数用于直接下载 base64 编码的文件

`/download_file`

::: tip 此 api 不适用于下载群文件或者私聊文件
:::

::: details 转发单条消息到好友 /forward_friend_single_msg
::: details 转发单条消息到好友 `/forward_friend_single_msg`

```json5
{
Expand All @@ -113,7 +109,7 @@ return
:::


::: details 转发单条消息到群 /forward_group_single_msg
::: details 转发单条消息到群 `/forward_group_single_msg`

```json5
{
Expand All @@ -123,7 +119,7 @@ return
```
:::

::: details 发送表情回应 /set_msg_emoji_like
::: details 发送表情回应 `/set_msg_emoji_like`
```json5
{
"message_id": "-2147480026",
Expand All @@ -133,7 +129,7 @@ return
emoji_id 参考 <https://bot.q.qq.com/wiki/develop/api-v2/openapi/emoji/model.html#EmojiType>
:::

::: details 获取带分组信息好友列表 /get_friends_with_category
::: details 获取带分组信息好友列表 `/get_friends_with_category`

return:
```json5
Expand Down Expand Up @@ -189,4 +185,32 @@ return:
]
}
```
:::

::: details 设置自身在线状态 `/set_online_status`

在线:
```json
{ status: 10, extStatus: 0, batteryStatus: 0 }
```
离开:
```json
{ status: 30, extStatus: 0, batteryStatus: 0 }
```
隐身:
```json
{ status: 40, extStatus: 0, batteryStatus: 0 }
```
忙碌:
```json
{ status: 50, extStatus: 0, batteryStatus: 0 }
```
Q我吧:
```json
{ status: 60, extStatus: 0, batteryStatus: 0 }
```
请勿打扰:
```json
{ status: 70, extStatus: 0, batteryStatus: 0 }
```
:::
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"author": "",
"devDependencies": {
"@types/node": "^22.2.0",
"vitepress": "^1.3.2",
"vue": "^3.4.37"
"@types/node": "^22.5.3",
"vitepress": "^1.3.4",
"vue": "^3.5.1"
}
}

0 comments on commit cda4743

Please sign in to comment.