### 跳转客户端聊天
>发起聊天(发送分享消息),客户端版本4.4之后支持
mag.chat(config);
~~~
/**
* @param(required) config Object
* {
* user_id:用户id (String, required)
* user_name:用户名 (String, optional)
* 分享参数,如果需要发送类似分享的消息则必须传title,否则des、pic、link都不生效
* title:标题 (String, optional)
* des:内容 (String, optional)
* pic: 图标 (String, optional)
* link: 链接 (String, optional)
* send_title: 发送分享按钮标题,客户端版本4.7.6及之后支持,不传默认显示“发送” (String, optional)
* }
*/
mag.chat({
user_id:"10",
user_name:"张三",
//分享参数
title:"扫地机器人",
des:"世界上最好的扫地机器人",
pic:"https://www.baidu.com",
link:"https://www.baidu.com",
});
~~~
>只发起聊天
mag.toChat(userId);
~~~
/**
* @param(required) String
*/
mag.toChat('10');
~~~