Skip to content

Commit 6ab4189

Browse files
author
haoxiuwen
committed
modify
1 parent 2e390a2 commit 6ab4189

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/document/server-side/callback_configurations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ payload 之外的字段如下表所示:
359359
| `callId` | String | `callId` 为每个回调请求的唯一标识,格式为 “App Key_该撤回事件消息的 ID”。 |
360360
| `eventType` | String | “chat” 上行消息、“chat_offline” 离线消息。 |
361361
| `timestamp` | long | 环信 IM 服务器接收到此消息的 Unix 时间戳,单位为 ms。 |
362-
| `chat_type` | String | “chat” 单聊回调、“groupchat” 群聊回调包含了群组和聊天室的消息回调,默认全选|
363-
| `group_id` | String | `chat_type``groupchat` 有此参数,表示回调消息所在的群组或聊天室。 |
362+
| `chat_type` | String | `recall`,表示消息撤回|
363+
| `group_id` | String | 该参数对于群组聊天或聊天室有效,表示回调消息所在的群组或聊天室。 |
364364
| `from` | String | 消息的发送方。 |
365365
| `to` | String | 消息的接收方。 |
366366
| `recall_id` | String | 要撤回的消息 ID。 |

docs/document/server-side/message_recall.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ POST https://{host}/{org_name}/{app_name}/messages/msg_recall
4040
| `from` | String || 消息撤回方的用户 ID。若不传该参数,默认为 `admin`|
4141
| `sync_device`| Bool || 是否支持单聊消息撤回同步给消息发送方的所有在线设备:<br/> - (默认) `true`:是; <br/> - `false`:否。<Container type="tip" title="提示">当参数 `force` 设置为 `true` 且消息已过期,此时若要将消息撤回同步发送方,则需将 `from` 参数设置为消息发送方。</Container>|
4242
| `force` | Bool || 是否支持强制撤回消息。<br/> - `true`:是。这种情况下,无论消息是否过期,你都可以撤回。若需撤回已过期的消息,`force` 须设置为 `true`。 <br/> - (默认)`false`:否。这种情况下,你只能在撤回时长内撤销服务端存在的消息。 |
43+
| `recallMessageExtensionInfo` | String || 消息撤回相关的扩展信息。 |
4344

4445
### HTTP 响应
4546

@@ -73,7 +74,8 @@ curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json
7374
"to": "user2",
7475
"from": "user1",
7576
"chat_type": "chat",
76-
"force": true
77+
"force": true,
78+
"recallMessageExtensionInfo": "{"type": "chat"}"
7779
}'
7880
```
7981

0 commit comments

Comments
 (0)