企达即时通讯手册

发送消息

企达即时通讯提供消息发送接口,第三方系统可将消息发送到企达即时通讯客户端,以便即时处理。如OA系统中的审批信息等

消息内容格式说明

content_type:支持Text/Text、Text/Btf

消息参数 效果图
文本消息
contenttype:"text/btf"
msgtype:"text"
content:hello
文件消息
contenttype:"text/btf"
msgtype:"file"
content:
<btf> <file name="编组 38.png" size="287728" thumbic="" original="/uploads/file/11.png" fshost="http://192.168.1.110:9001" fshost_pc="FileServer_Default" type="2"> 编组 38.png;e8f10688-8a5c-4030-b5e0-86def72788e5 </file> </btf>
图片消息
contenttype:"text/btf"
msgtype:"image"
content:
<btf> <file name="编组 38.png" size="287728" thumbic="" original="/uploads/file/11.png" fshost="http://192.168.1.110:9001" fshost_pc="FileServer_Default" type="2"> 编组 38.png;e8f10688-8a5c-4030-b5e0-86def72788e5 </file> </btf>
语音消息
contenttype:"text/btf"
msgtype:"voice"
content:
<btf> <file name="编组 38.png" size="287728" thumbic="" original="/uploads/file/11.png" fshost="http://192.168.1.110:9001" fshost_pc="FileServer_Default" type="2"> 编组 38.png;e8f10688-8a5c-4030-b5e0-86def72788e5 </file> </btf>
小视频消息
contenttype:"text/btf"
msgtype:"shoot"
content:
<btf> <file name="编组 38.png" size="287728" thumbic="" original="/uploads/file/11.png" fshost="http://192.168.1.110:9001" fshost_pc="FileServer_Default" type="2"> 编组 38.png;e8f10688-8a5c-4030-b5e0-86def72788e5 </file> </btf>
位置消息
contenttype:"text/btf"
msgtype:"location"
content:
<btf> <location>l120.12484;30.27137;杭州市文三路123号;江南电子科技大厦</location> </btf>
应用消息
contenttype:"text/json"
msgtype:"app"
content:
{ "app_code": "addon_announce", "app_name": "公告", "title": "消息标题", "desc": "消息描述", "icon": "/static/addon_announce/img/icon_announce.png", "url": "http://www.qidainfo.com", "url_mobile": "http://www.qidainfo.com", "url_pc": "http://www.qidainfo.com", "pc_target_type": "1", "mobile_target_type": "1", "create_time": "1642145922" }
contenttype:"text/json"
msgtype:"link"
content:
{ "title": "测试消息", "desc": "这里是标签", "icon": "http://192.168.1.110:9001/static/addon_announce/img/icon_announce.png", "url": "http://www.qidainfo.com", "url_mobile": "http://www.qidainfo.com", "url_pc": "http://www.qidainfo.com", "pc_target_type": "1", "mobile_target_type": "1", "create_time": "1642146733" }