Skip to content

Commit c98f0a0

Browse files
committed
Update msg.md
增加了批量信息撤回API
1 parent 4f5f096 commit c98f0a0

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

src/api/v1/msg.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,3 +533,49 @@ message button_report {
533533
}
534534
```
535535
:::
536+
537+
### 批量信息撤回
538+
539+
POST /v1/msg/recall-msg-batch
540+
541+
请求头:
542+
|名称|必须|备注|
543+
|-----|-----|-----|
544+
|token|是|空
545+
546+
请求体:
547+
```ProtoBuf
548+
msg_id: "123123123123123123" // 信息ID
549+
// ...
550+
chat_id: "123" // 信息所属对象ID
551+
chat_type: 2 // 信息所属对象类型, 1-用户 2-群聊 3-机器人
552+
```
553+
554+
::: details ProtoBuf数据结构
555+
```proto
556+
// 通过消息序列列出消息
557+
message recall_msg_batch_send {
558+
repeated string msg_id = 2; // 信息ID
559+
string chat_id = 3; // 信息所属对象ID
560+
uint64 chat_type = 4; // 信息所属对象类型, 1-用户 2-群聊 3-机器人
561+
}
562+
```
563+
:::
564+
565+
响应体:
566+
```ProtoBuf
567+
status {
568+
number: 114514
569+
code: 1
570+
msg: "success"
571+
}
572+
```
573+
574+
::: details ProtoBuf数据结构
575+
```proto
576+
// 批量信息撤回返回状态码
577+
message button_report {
578+
Status status = 1;
579+
}
580+
```
581+
:::

0 commit comments

Comments
 (0)