File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
docs/document/server-side Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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。 |
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments