Skip to content

Commit

Permalink
[Docs] Add go-cqhttp Forward API Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkong authored Mar 1, 2024
1 parent 9331a7c commit 37cfce3
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions docs/Lagrange.OneBot/API/Extend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
**方法名**
`fetch_custom_face`

#### 该方法无参数
:::tip 提示
该方法无参数
:::

**响应数据**

Expand Down Expand Up @@ -79,7 +81,7 @@
| --- | --- | --- |
| `resid` | string | Resid |

:::tip
:::tip 提示
**发送合并转发消息**

请使用标准消息发送API发送一个`"type": "forward", "id": Resid``OneBotSegment`消息
Expand All @@ -104,3 +106,43 @@ async def test_send_forward_message(target_id: int):
```

:::

## 发送合并转发(群聊)

**方法名**
`send_group_forward_msg`

**参数**

| 字段 | 类型 | 说明 |
| ---------- | ------------------------ | ------------------------------------------------------------ |
| `group_id` | uint | 群号 |
| `messages` | List[OneBotSegment.node] | 自定义转发消息, 要求参看前文 |

**响应数据**

| 字段名 | 数据类型 | 说明 |
| ------------ | -------- | ----------- |
| `message_id` | int64 | 消息 ID |
| `forward_id` | string | 转发消息 ID |



## 发送合并转发(好友)

**方法名**
`send_private_forward_msg`

**参数**

| 字段 | 类型 | 说明 |
| ---------- | ------------------------ | ------------------------------------------------------------ |
| `user_id` | uint | 好友QQ号 |
| `messages` | List[OneBotSegment.node] | 自定义转发消息, 要求参看前文 |

**响应数据**

| 字段名 | 数据类型 | 说明 |
| ------------ | -------- | ----------- |
| `message_id` | int64 | 消息 ID |
| `forward_id` | string | 转发消息 ID |

0 comments on commit 37cfce3

Please sign in to comment.