消息回调接口说明
当回调消息未能通过 HTTP POST/JSON 方式成功推送至接收方时,请考虑使用 Apifox 向接收地址发送一条测试消息。如果仍然未能接收到消息,请检查接收地址的可用性。反之,若能成功接收测试消息,请联系客服,我们将协助您进行进一步的问题排查。
可通过消息发送人($.Data.FromUserName.string)与所属微信($.Wxid)是否一致进行判断。
可通过消息发送人($.Data.FromUserName.string)为@chatroom结尾判断。
"Content":{"string":"wxid_*uv2q*vsj*0522:\n这个是消息内容,可能是文本、图片或者视频 "}。
可通过Content内string第一段内容判断
文本消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 1, 回调消息类型 1是文本消息
"Content":
{
"string": "******" # 消息内容
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : ******", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
图片消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 3, 回调消息类型 3是图片消息
"Content":
{
"string": "******" 图片的cdn信息(XML),可用此字段做转发图片
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 2146,
"buffer": "/9j/******/4QBM..." # 缩略图的base64
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [图片]", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
语音消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 34, 回调消息类型,34是语音消息
"Content":
{
"string": "******" 语音消息的下载信息,可用于下载语音文件
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 3600,
"buffer": "AiMhU0lMS19WMxMApzi9JA+qToPB..." 语音文件的base64,并非所有语音消息都有本字段
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [语音]", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
视频消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 43, 回调消息类型,43是视频消息
"Content":
{
"string": "******" 视频消息的cdn信息,可用此字段做转发视频
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [视频]", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
emoji表情
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 47, 回调消息类型,47是emoji消息
"Content":
{
"string": "******" 可解析xml中的md5用与发送emoji消息
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [动画表情]", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
公众号链接
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******" 可用此字段做转发链接
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [链接]尔滨,又有好消息!", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
文件消息(发送文件的通知)
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [文件]hhh.xlsx", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
文件消息(文件发送完成)
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": ""
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [文件]hhh.xlsx", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
名片消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 42, 回调消息类型,42是名片消息
"Content":
{
"string": "******" 名片中微信号的基本信息,可用于添加好友
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [名片]Ashley", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
好友添加请求通知
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 37, 回调消息类型,37是好友添加请求通知
"Content":
{
"string": "******" 请求添加好友微信号的基本信息,可用于添加好友
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
好友通过验证及好友资料变更的通知消息
{
"Appid": "wx_*_**_***",
"TypeName": "ModContacts",
"Data":
{
"UserName":
{
"string": "wxid_******"
},
"NickName":
{
"string": "******-******"
},
"PyInitial":
{
"string": "******"
},
"QuanPin":
{
"string": "******"
},
"Sex": 1,
"ImgBuf":
{
"iLen": 0
},
"BitMask": ******,
"BitVal": 3,
"ImgFlag": 1,
"Remark":
{},
"RemarkPyinitial":
{},
"RemarkQuanPin":
{},
"ContactType": 0,
"RoomInfoCount": 0,
"DomainList": [
{}],
"ChatRoomNotify": 0,
"AddContactScene": 0,
"Province": "Jiangsu",
"City": "Nanjing",
"Signature": "......",
"PersonalCard": 0,
"HasWeiXinHdHeadImg": 1,
"VerifyFlag": 0,
"Level": 6,
"Source": 14,
"WeiboFlag": 0,
"AlbumStyle": 0,
"AlbumFlag": 3,
"SnsUserInfo":
{
"SnsFlag": 1,
"SnsBgimgId": "******",
"SnsBgobjectId": ******,
"SnsFlagEx": ******
},
"Country": "CN",
"BigHeadImgUrl": "******",
"SmallHeadImgUrl": "******",
"CustomizedInfo":
{
"BrandFlag": 0
},
"EncryptUserName": "******r",
"AdditionalContactList":
{
"LinkedinContactItem":
{}
},
"ChatroomMaxCount": 0,
"DeleteFlag": 0,
"Description": "\b\u0000\u0018\u0000\"\u0000(\u00008\u0000",
"ChatroomStatus": 0,
"Extflag": 0,
"ChatRoomBusinessType": 0
}
}
小程序消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 2,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [小程序]腾讯云助手", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
引用消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "************", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
转账消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [转账]", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
红包消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持 : [红包]恭喜发财,大吉大利", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
视频号消息
//消息通知(点赞、评论、小红心)
{
"TypeName": "FinderSyncMsg",
"Appid": "wx_xmt***********8uugAG",
"Data": {
"priority": 400000,
"type": 2,
"extInfo": "GKij2LcWsfA=",
"showInfos": [
{
"showType": 2,
"clearType": 2,
"path": "TLPersonalCenter",
"parent": "",
"showExtInfoType": 2
},
{
"showType": 27,
"title": "有人评论了你的作品",
"clearType": 1,
"path": "FinderMessageEntryRight",
"parent": "TLPersonalCenter",
"showExtInfoType": 5,
"showExtInfo": "CAI="
}
],
"tipsId": "tipsid_1727402408879585",
"selfFinderUsername": "v2_060000231003b20fa***********@finder",
"reportExtInfo": "eyJyZWRfY29udG***********OiuuuS6huS9oOeahOS9nOWTgSJ9",
"tipsUuid": "tipsuuid_17***************_2704224217_2"
},
"Wxid": "wxid_7***********22"
}
//私信推送
{
"TypeName": "FinderBypMsg",
"Appid": "wx_xmtR***************gAG",
"Data": {
"msg": {
"MsgId": 391,
"FromUserName": {
"string": "fv1_d6b0b96bfb508***********@findermsgstranger"
},
"ToUserName": {
"string": "v2_060000231003b20faec8c***********@finder"
},
"MsgType": 1,
"Content": {
"string": "测试消息,",
"Status": ":3,",
"ImgStatus": ":1,",
"ImgBuf": ":{",
"iLen": ":0},",
"CreateTime": ":1727458354,",
"MsgSource": ":"
}
}
}
}
//关注消息
{
"TypeName": "FinderSyncMsg",
"Appid": "wx_xmtR***********8uugAG",
"Data": {
"priority": 400000,
"type": 2,
"extInfo": "GMmp2LcAerfss=",
"showInfos": [
{
"showType": 2,
"clearType": 2,
"path": "TLPersonalCenter",
"parent": "",
"showExtInfoType": 2
},
{
"showType": 27,
"title": "有人关注了你",
"clearType": 1,
"path": "FinderMessageEntryRight",
"parent": "TLPersonalCenter",
"showExtInfoType": 5,
"showExtInfo": "CAM="
}
],
"tipsId": "tipsid_1727403209365726",
"selfFinderUsername": "v2_060000231003b20faec8***********@finder",
"reportExtInfo": "eyJyZWRfY29udGVu***********OS6huS9oCJ9",
"tipsUuid": "tipsuuid_1727***********1_3695673591_2"
},
"Wxid": "wxid_***********2hpjq22"
}
撤回消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
拍一拍消息
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
地理位置
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 48, 回调消息类型,48是地理位置消息
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"PushContent": "苏生-技术支持分享了一个地理位置", 消息通知内容
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
群聊邀请
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 消息发送人的wxid
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 49,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 0,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
被移除群聊通知
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 10000,
"Content":
{
"string": "你被\"苏生-技术支持\"移出群聊"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
踢出群聊通知
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "******"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
解散群聊通知
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "*******@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 10002,
"Content":
{
"string": "******"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
修改群名称
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": 10000,
"Content":
{
"string": "你修改群名为“******”"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
更换群主通知
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_******" 消息接收人的wxid
},
"MsgType": ******,
"Content":
{
"string": "你已成为新群主"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
群信息变更通知
{
"TypeName": "ModContacts", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"UserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"NickName":
{
"string": "******"
},
"PyInitial":
{
"string": "******"
},
"QuanPin":
{
"string": "******"
},
"Sex": 0,
"ImgBuf":
{
"iLen": 0
},
"BitMask": ******,
"BitVal": 2,
"ImgFlag": 1,
"Remark":
{},
"RemarkPyinitial":
{},
"RemarkQuanPin":
{},
"ContactType": 0,
"RoomInfoCount": 0,
"DomainList": [
{}],
"ChatRoomNotify": 1,
"AddContactScene": 0,
"PersonalCard": 0,
"HasWeiXinHdHeadImg": 0,
"VerifyFlag": 0,
"Level": 0,
"Source": 0,
"ChatRoomOwner": "wxid_******",
"WeiboFlag": 0,
"AlbumStyle": 0,
"AlbumFlag": 0,
"SnsUserInfo":
{
"SnsFlag": 0,
"SnsBgobjectId": 0,
"SnsFlagEx": 0
},
"CustomizedInfo":
{
"BrandFlag": 0
},
"AdditionalContactList":
{
"LinkedinContactItem":
{}
},
"ChatroomMaxCount": "******”,
"DeleteFlag": 2,
"Description": "******",
"ChatroomStatus": 27,
"Extflag": 0,
"ChatRoomBusinessType": 0
}
}
发布群公告
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "wxid_******" 发布人的wxid
},
"ToUserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"MsgType": 10002,
"Content":
{
"string": "******"
},
"Status": 3,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
群待办
{
"TypeName": "AddMsg", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"MsgId": ******, 消息ID
"FromUserName":
{
"string": "******@chatroom" 所在群聊的ID
},
"ToUserName":
{
"string": "wxid_******"
},
"MsgType": 10002,
"Content":
{
"string": "******"
},
"Status": 4,
"ImgStatus": 1,
"ImgBuf":
{
"iLen": 0
},
"CreateTime": ******, 消息发送时间
"MsgSource": "******",
"NewMsgId": ******, 消息ID
"MsgSeq": ******
}
}
删除好友通知
{
"TypeName": "DelContacts", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"UserName":
{
"string": "wxid_******" 删除的好友wxid
},
"DeleteContactScen": 0
}
}
退出群聊
{
"TypeName": "DelContacts", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******", 归属微信的wxid
"Data":
{
"UserName":
{
"string": "******@chatroom" 退出的群聊ID
},
"DeleteContactScen": 0
}
}
掉线通知
{
"TypeName": "Offline", 回调消息类型
"Appid": "wx_*_**_***", 设备appid
"Wxid": "wxid_******" 掉线号的wxid
}