简要描述:

-消息各类型数据说明:根据msg_type区分

text:文本消息

参数名 类型 说明
content string 文本内容

image:图片消息

参数名 类型 说明
content string 图片路径

revoke:撤回消息

参数名 类型 说明
content string 撤回的消息的msg_id(就显示撤回一条就行了吧)

voice:语音

参数名 类型 说明
content string 语音路径

video:视频

参数名 类型 说明
content string 视频路径

card:名片

参数名 类型 说明
content array 内容
content.corpname string 名片所有者所在的公司名称
content.userid string 名片所有者的id,同一公司是userid
content.name string 名片所有者的名称
content.avatar string 名片所有者的头像

location:位置

参数名 类型 说明
content array 内容
content.longitude string 经度
content.latitude string 纬度
content.address string 地址信息
content.title string 位置信息的title
content.zoom string 缩放比例

emotion:表情

参数名 类型 说明
content string 表情路径

file:文件

参数名 类型 说明
content string 文件路径

link:链接

参数名 类型 说明
content string 链接路径

weapp:小程序消息

参数名 类型 说明
content array 小程序消息内容
content.title string 消息标题
content.description string 消息描述
content.username string 用户名称
content.displayname string 小程序名称

chatrecord:会话记录消息

参数名 类型 说明
content array 会话记录消息
content.title string 聊天记录标题
content.item array 消息记录内的消息内容,批量数据
content.item.type string 每条聊天记录的具体消息类型:ChatRecordText/ ChatRecordFile/ ChatRecordImage/ ChatRecordVideo/ ChatRecordLink/ ChatRecordLocation/ ChatRecordMixed ….
content.item.msgtime string 消息时间
content.item.content string 消息内容
content.from_chatroom Bool 是否来自群会话。Bool类型

collect:填表消息

参数名 类型 说明
content array 会话记录消息
content.room_name string 填表消息所在的群名称
content.creator string 创建者在群中的名字
content.create_time string 创建的时间
content.title string 表名
content.details array 表内容
content.details.id int 表项id
content.details.ques string 表项名称
content.details.type string 表项类型,有Text(文本),Number(数字),Date(日期),Time(时间)。String类型

redpacket:红包消息

参数名 类型 说明
content array 红包消息
content.type int 红包消息类型。1 普通红包、2 拼手气群红包、3 激励群红包
content.wish string 红包祝福语
content.totalcnt int 红包总个数
content.totalamount float 红包总金额

meeting:会议邀请消息

参数名 类型 说明
content array 会议邀请消息
topic string 会议主题。String类型
starttime int 会议开始时间
endtime int 会议结束时间
address string 会议地址
remarks string 会议备注
meetingtype int 会议消息类型。101发起会议邀请消息、102处理会议邀请消息。Uint32类型
meetingid int 会议id。方便将发起、处理消息进行对照
status int 会议邀请处理状态。1 参加会议、2 拒绝会议、3 待定、4 未被邀请、5 会议已取消、6 会议已过期、7 不在房间内。Uint32类型。只有meetingtype为102的时候此字段才有内容。

docmsg:在线文档消息

参数名 类型 说明
content array 在线文档消息
title string 在线文档名称
link_url string 在线文档链接
doc_creator string 在线文档创建者

news:图文消息

参数名 类型 说明
content array 图文消息
title string 图文消息标题
description string 图文消息描述
url string 图文消息点击跳转地址
picurl string 图文消息配图的url

calendar:日程消息

参数名 类型 说明
content array 日程消息
title string 日程主题
creatorname string 日程组织者
attendeename array 日程参与人。数组
starttime string 日程开始时间
endtime string 日程结束时间
place string 日程地点
remarks string 日程备注

mixed:混合消息

参数名 类型 说明
content array 混合消息
type string 所有消息的类型
content array 所有消息的内容

meeting_voice_call:音频存档消息

参数名 类型 说明
content array 音频存档消息
file string 音频文件路径
demofiledata array 文档分享对象
filename string 文档共享名称
demooperator string 文档共享操作用户的id
starttime int 文档共享开始时间
endtime int 文档共享结束时间
sharescreendata array 屏幕共享对象
share int 屏幕共享用户的id
starttime int 屏幕共享开始时间
endtime int 屏幕共享结束时间

voip_doc_share:音频共享文档消息

参数名 类型 说明
content array 音频共享文档消息
file string 音频文件路径
file_name string 文件名

external_redpacket:互通红包消息

参数名 类型 说明
content array 互通红包消息
content.type int 红包消息类型。1 普通红包、2 拼手气群红包、3 激励群红包
content.wish string 红包祝福语
content.totalcnt int 红包总个数
content.totalamount float 红包总金额

sphfeed:视频号消息

参数名 类型 说明
content array 视频号消息
feed_type int 视频号消息类型。2 图片、4 视频、9 直播
sph_name string 视频号账号名称
feed_desc string 视频号消息描述