File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
docs/document/server-side Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,40 @@ curl -X GET -H 'Accept: application/json' -H 'Authorization: Bearer <YourAppToke
361361]
362362```
363363
364+ ### 合并消息
365+
366+ 合并消息的 bodies 包含如下字段:
367+
368+ | 参数 | 类型 | 描述 |
369+ | :------------ | :----- | :----------------------------------------------- |
370+ | ` combineLevel ` | Int | 合并消息的嵌套层级数。 |
371+ | ` file_length ` | Int | 合并消息的大小。 |
372+ | ` filename ` | String | 合并消息的附件名称。 |
373+ | ` secret ` | String | 合并消息附件的访问密钥。如果 [ 文件上传] ( message_download.html#上传文件 ) 时设置了文件访问限制,则该字段存在。 |
374+ | ` subType ` | String | 表示消息类型为合并消息。 |
375+ | ` summary ` | String | 合并消息的概要。 |
376+ | ` title ` | String | 合并消息的标题。 |
377+ | ` url ` | String | 合并消息的附件的 URL 地址。你可以访问该 URL 下载该附件。 |
378+
379+ 例如,下面示例为源消息包括文本、图片和文件消息的合并消息格式:
380+
381+ ``` json
382+ "bodies" : [
383+ {
384+ "combineLevel" : 1 ,
385+ "file_length" : 550 ,
386+ "filename" : " 17289718748990036" ,
387+ "secret" : " a_OTmoq6Ee-CygH0PRzcUyFniZDmSsX1ur0j-9RtCj3tK6Gr" ,
388+ "subType" : " sub_combine" ,
389+ "summary" : " :yyuu\n :[图片]\n :[文件]\n " ,
390+ "title" : " 聊天记录" ,
391+ "url" : " https://a1-hsb.easemob.com/sandbox-dee1/wdtest/chatfiles/6bf39390-8aba-11ef-a8ae-6f545c50ca23"
392+ }
393+ ]
394+ ```
395+
396+
397+
364398## 错误码
365399
366400如果返回的 HTTP 状态码非 ` 200 ` ,表示请求失败,可能提示以下错误码:
You can’t perform that action at this time.
0 commit comments