{ "type": "object", "properties": { "data": { "type": "object", "properties": { "token": { "type": "string", "title": "企业级token" }, "botId": { "type": "string", "title": "bot的账号id" }, "chatId": { "type": "string", "title": "对话id(表示一个bot和一个客户)" }, "avatar": { "type": "string", "title": "客户或者群头像" }, "coworker": { "type": "boolean", "title": "是否为内部员工" }, "externalUserId": { "type": "string", "title": "客户的企业微信externalUserId" }, "contactName": { "type": "string", "title": "客户姓名" }, "roomWecomChatId\t": { "type": "string", "title": "群的企微chatId" }, "roomTopic": { "type": "string", "title": "群名" }, "messageId": { "type": "string", "title": "消息id" }, "isSelf": { "type": "boolean", "title": "消息是否是托管账号自己发送的消息" }, "sendBy": { "type": "string", "title": "消息发送者的秒回id,仅当消息为消息为托管账号发送的,且消息来源为小组级控制台手动发消息时有效" }, "source": { "type": "number", "title": "消息来源,具体来源信息参考下面的枚举定义", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "手机推送过来的消息" }, { "name": "", "value": 1, "description": "小组级控制台手动发送消息" }, { "name": "", "value": 2, "description": "群发" }, { "name": "", "value": 3, "description": "自动回复" }, { "name": "", "value": 4, "description": "创建群聊" }, { "name": "", "value": 5, "description": "其他机器人回复" }, { "name": "", "value": 6, "description": "api发消息" }, { "name": "", "value": 7, "description": "sop功能" } ] }, "contactType": { "type": "number", "title": "客户的类型", "enum": [ 0, 1, 2, 3 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知类型的联系人" }, { "name": "", "value": 1, "description": "个人微信" }, { "name": "", "value": 2, "description": "公众号" }, { "name": "", "value": 3, "description": "企业微信" } ] }, "payload": { "anyOf": [ { "type": "object", "additionalProperties": false, "x-apifox-orders": [ "content" ], "title": "未知", "properties": { "content": { "type": "string", "title": "文件名", "description": "消息内容转成字符串" } }, "required": [ "content" ], "description": "当type为0时" }, { "type": "object", "additionalProperties": false, "x-apifox-orders": [ "name", "fileUrl", "size\t" ], "properties": { "name": { "type": "string", "title": "文件名" }, "fileUrl": { "type": "string", "title": "文件地址" }, "size\t": { "type": "number", "title": "文件大小" } }, "required": [ "name", "fileUrl" ], "title": "文件消息", "description": "当type为1时" }, { "type": "object", "properties": { "voiceUrl": { "type": "string", "title": "语音地址" }, "duration": { "type": "number", "title": "时长" } }, "x-apifox-orders": [ "voiceUrl", "duration" ], "required": [ "voiceUrl", "duration" ], "title": "语音消息", "description": "当type为2时" }, { "type": "object", "properties": { "avatar": { "type": "string", "title": "头像" }, "coworker\t": { "type": "boolean", "title": "是否为内部员工" }, "friend": { "type": "boolean", "title": "是否为好友" }, "gender": { "type": "number", "title": "性别", "enum": [ 0, 1, 2 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知" }, { "name": "", "value": 1, "description": "男" }, { "name": "", "value": 2, "description": "女" } ] }, "wxid": { "type": "string", "title": "名片客户系统wxid" }, "name": { "type": "string", "title": "名字" }, "type\t": { "type": "number", "title": "类型", "enum": [ 0, 1, 2, 3 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知" }, { "name": "", "value": 1, "description": "个人微信" }, { "name": "", "value": 2, "description": "公众号" }, { "name": "", "value": 3, "description": "企业微信" } ] }, "weixin": { "type": "string", "title": "微信号/企业微信(名字全拼)" } }, "title": "名片消息", "description": "当type为3时", "x-apifox-orders": [ "avatar", "coworker\t", "friend", "gender", "wxid", "name", "type\t", "weixin" ], "required": [ "avatar", "coworker\t", "weixin", "type\t", "name", "wxid", "gender", "friend" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "聊天历史消息", "description": "当type为4时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "imageUrl\t": { "type": "string", "title": "表情地址" } }, "x-apifox-orders": [ "imageUrl\t" ], "title": "表情消息", "description": "当type为5时", "required": [ "imageUrl\t" ] }, { "type": "object", "properties": { "imageUrl": { "type": "string", "title": "压缩图片地址" }, "size": { "type": "number", "title": "图片地址大小" }, "artwork": { "type": "object", "properties": {}, "title": "原图数据", "x-apifox-orders": [] }, "artwork.height": { "type": "number", "title": "原图高" }, "artwork.width": { "type": "string", "title": "原图宽" } }, "title": "图片消息", "description": "当type为6时", "x-apifox-orders": [ "imageUrl", "size", "artwork", "artwork.height", "artwork.width" ], "required": [ "imageUrl", "artwork.width", "artwork.height" ] }, { "type": "object", "properties": { "text\t": { "type": "string", "title": "消息内容" }, "mention": { "type": "array", "items": { "type": "string" }, "title": "被@的人的wxid" } }, "title": "文字消息", "description": "当type为7时", "x-apifox-orders": [ "text\t", "mention" ], "required": [ "text\t" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "位置消息", "description": "当type为8时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "nickname": { "type": "string", "title": "封面图url" }, "url\t": { "type": "string", "title": "视频号地址" }, "appid": { "type": "string", "title": "关联的公众号ID" }, "description": { "type": "string", "title": "小程序描述" }, "pagePath": { "type": "string", "title": "跳转路径" }, "thumbKey\t": { "type": "string", "title": "封面图加密数据" }, "title": { "type": "string", "title": "小程序标题" }, "username": { "type": "string", "title": "小程序ID" }, "iconUrl": { "type": "string", "title": "icon地址" } }, "title": "小程序消息", "description": "当type为9时", "x-apifox-orders": [ "appid", "description", "pagePath", "thumbKey\t", "nickname", "title", "url\t", "username", "iconUrl" ], "required": [ "appid", "pagePath", "description", "username", "url\t", "title" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "钱相关消息", "description": "当type为10时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "撤回消息", "description": "当type为11时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "图文消息", "description": "当type为12时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "videoUrl": { "type": "string", "title": "视频地址" }, "duration": { "type": "number", "title": "时长" }, "thumbnailUrl": { "type": "string", "title": "封面图地址" } }, "title": "视频消息", "description": "当type为13时", "x-apifox-orders": [ "videoUrl", "duration", "thumbnailUrl" ], "required": [ "videoUrl", "thumbnailUrl" ] }, { "type": "object", "properties": { "roomTopic": { "type": "string", "title": "群名" }, "avatarUrl\t": { "type": "string", "title": "群头像" }, "invitaterName": { "type": "string", "title": "邀请者名字" }, "inviteModelId": { "type": "string", "title": "邀请者记录id" }, "inviteStatus": { "type": "number", "title": "邀请状态", "enum": [ 0, 1, 2 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "已发送" }, { "name": "", "value": 1, "description": "成功" }, { "name": "", "value": 2, "description": "失败" } ] } }, "title": "入群邀请", "description": "当type为9999时", "x-apifox-orders": [ "roomTopic", "avatarUrl\t", "invitaterName", "inviteModelId", "inviteStatus" ], "required": [ "roomTopic", "invitaterName", "avatarUrl\t" ] }, { "type": "object", "properties": { "type": { "type": "number", "enum": [ 5, 6 ], "title": "\t类型", "x-apifox-enum": [ { "name": "", "value": 5, "description": "RECALL_MESSAGE_FAILED" }, { "name": "", "value": 6, "description": "ROOM_JOIN_MEMBER" } ] }, "subPayload": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "详情" }, "RecallFailedPayload.messageId": { "type": "string", "title": "消息id" }, "RoomJoinMemberPayload.memberNames": { "type": "array", "items": { "type": "string" }, "title": "入群联系人名字" }, "RoomJoinMemberPayload.inviterName": { "type": "string", "title": "邀请者姓名" } }, "title": "系统消息", "description": "当type为10000时", "x-apifox-orders": [ "type", "subPayload", "RecallFailedPayload.messageId", "RoomJoinMemberPayload.memberNames", "RoomJoinMemberPayload.inviterName" ], "required": [ "type", "subPayload" ] }, { "type": "object", "properties": { "wechatSystemPayloadType": { "type": "number", "enum": [ 0, 1, 2 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "入群" }, { "name": "", "value": 1, "description": "离群" }, { "name": "", "value": 2, "description": "群名称变更" } ] }, "subPayload": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "详情" }, "ContactInRoomSystemMessage.wxid": { "type": "string", "title": "群聊系统wxid" }, "ContactInRoomSysemMessage.isSelf\t": { "type": "string", "title": "是否是bot自己" }, "ContactInRoomSystemMessage.displayName": { "type": "string", "title": "展示名称" }, "RoomJoinPayload.inviter": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "邀请者信息" }, "RoomJoinPayload.inviteeList": { "type": "array", "items": { "type": "string" }, "title": "被邀请者信息" }, "RoomJoinPayload.timestamp": { "type": "number", "title": "时间戳" }, "RoomLeavePayload.remover": { "type": "object", "properties": {}, "title": "踢人者", "x-apifox-orders": [] }, "RoomLeavePayload.leaverList": { "type": "array", "items": { "type": "string" }, "title": "被踢者信息" }, "RoomLeavePayload.timestamp": { "type": "number", "title": "时间戳" }, "RoomTopicPayload.oldTopic": { "type": "string", "title": "旧群名" }, "RoomTopicPayload.newTopic": { "type": "string", "title": "新群名" }, "RoomTopicPayload.changer": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "修改者信息" }, "RoomTopicPayload.timestamp": { "type": "number", "title": "时间戳" } }, "title": "企微系统消息", "description": "当type为10001时", "x-apifox-orders": [ "wechatSystemPayloadType", "subPayload", "ContactInRoomSystemMessage.wxid", "ContactInRoomSysemMessage.isSelf\t", "ContactInRoomSystemMessage.displayName", "RoomJoinPayload.inviter", "RoomJoinPayload.inviteeList", "RoomJoinPayload.timestamp", "RoomLeavePayload.remover", "RoomLeavePayload.leaverList", "RoomLeavePayload.timestamp", "RoomTopicPayload.oldTopic", "RoomTopicPayload.newTopic", "RoomTopicPayload.changer", "RoomTopicPayload.timestamp" ], "required": [ "wechatSystemPayloadType", "RoomJoinPayload.timestamp", "RoomJoinPayload.inviteeList", "RoomJoinPayload.inviter", "subPayload", "RoomLeavePayload.leaverList", "RoomTopicPayload.newTopic", "RoomLeavePayload.timestamp", "RoomTopicPayload.timestamp", "RoomTopicPayload.changer" ] } ], "title": "消息内容" }, "roomId": { "type": "string", "title": "群聊的系统wxid" }, "contactId": { "type": "string", "title": "客户的系统wxid" }, "type": { "type": "number", "title": "消息的payload", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 9999, 10000, 10001 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知" }, { "name": "", "value": 1, "description": "文件" }, { "name": "", "value": 2, "description": "语音" }, { "name": "", "value": 3, "description": "名片" }, { "name": "", "value": 4, "description": "聊天历史" }, { "name": "", "value": 5, "description": "表情" }, { "name": "", "value": 6, "description": "图片" }, { "name": "", "value": 7, "description": "文字" }, { "name": "", "value": 8, "description": "位置" }, { "name": "", "value": 9, "description": "小程序" }, { "name": "", "value": 10, "description": "钱相关" }, { "name": "", "value": 11, "description": "撤回消息" }, { "name": "", "value": 12, "description": "图文消息" }, { "name": "", "value": 13, "description": "视频" }, { "name": "", "value": 15, "description": "语音/视频通话" }, { "name": "", "value": 16, "description": "群聊接龙消息(目前无法获取具体内容)" }, { "name": "", "value": 9999, "description": "入群邀请" }, { "name": "", "value": 10000, "description": "系统消息" }, { "name": "", "value": 10001, "description": "企业微信系统消息" } ] }, "timestamp": { "type": "string", "title": "消息时间戳" }, "botWxid": { "type": "string", "title": "托管账号对应成员的系统wxid" }, "botWeixin": { "type": "string", "title": "bot的企业微信userId" }, "mentionSelf": { "type": "boolean", "title": "当前消息是否@了托管账号" } }, "x-apifox-orders": [ "messageId", "chatId", "avatar", "roomTopic", "roomId", "contactName", "contactId", "payload", "type", "timestamp", "token", "botId", "contactType", "coworker", "botWxid", "botWeixin", "source", "sendBy", "isSelf", "mentionSelf", "externalUserId", "roomWecomChatId\t" ], "required": [ "timestamp", "mentionSelf" ] } }, "x-apifox-orders": [ "data" ], "required": [ "data" ] }
curl --location --request POST 'https://aa-stream-api.ddregion.com/message' \ --header 'Content-Type: application/json' \ --data-raw '{ "type": "object", "properties": { "data": { "type": "object", "properties": { "token": { "type": "string", "title": "企业级token" }, "botId": { "type": "string", "title": "bot的账号id" }, "chatId": { "type": "string", "title": "对话id(表示一个bot和一个客户)" }, "avatar": { "type": "string", "title": "客户或者群头像" }, "coworker": { "type": "boolean", "title": "是否为内部员工" }, "externalUserId": { "type": "string", "title": "客户的企业微信externalUserId" }, "contactName": { "type": "string", "title": "客户姓名" }, "roomWecomChatId\t": { "type": "string", "title": "群的企微chatId" }, "roomTopic": { "type": "string", "title": "群名" }, "messageId": { "type": "string", "title": "消息id" }, "isSelf": { "type": "boolean", "title": "消息是否是托管账号自己发送的消息" }, "sendBy": { "type": "string", "title": "消息发送者的秒回id,仅当消息为消息为托管账号发送的,且消息来源为小组级控制台手动发消息时有效" }, "source": { "type": "number", "title": "消息来源,具体来源信息参考下面的枚举定义", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "手机推送过来的消息" }, { "name": "", "value": 1, "description": "小组级控制台手动发送消息" }, { "name": "", "value": 2, "description": "群发" }, { "name": "", "value": 3, "description": "自动回复" }, { "name": "", "value": 4, "description": "创建群聊" }, { "name": "", "value": 5, "description": "其他机器人回复" }, { "name": "", "value": 6, "description": "api发消息" }, { "name": "", "value": 7, "description": "sop功能" } ] }, "contactType": { "type": "number", "title": "客户的类型", "enum": [ 0, 1, 2, 3 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知类型的联系人" }, { "name": "", "value": 1, "description": "个人微信" }, { "name": "", "value": 2, "description": "公众号" }, { "name": "", "value": 3, "description": "企业微信" } ] }, "payload": { "anyOf": [ { "type": "object", "additionalProperties": false, "x-apifox-orders": [ "content" ], "title": "未知", "properties": { "content": { "type": "string", "title": "文件名", "description": "消息内容转成字符串" } }, "required": [ "content" ], "description": "当type为0时" }, { "type": "object", "additionalProperties": false, "x-apifox-orders": [ "name", "fileUrl", "size\t" ], "properties": { "name": { "type": "string", "title": "文件名" }, "fileUrl": { "type": "string", "title": "文件地址" }, "size\t": { "type": "number", "title": "文件大小" } }, "required": [ "name", "fileUrl" ], "title": "文件消息", "description": "当type为1时" }, { "type": "object", "properties": { "voiceUrl": { "type": "string", "title": "语音地址" }, "duration": { "type": "number", "title": "时长" } }, "x-apifox-orders": [ "voiceUrl", "duration" ], "required": [ "voiceUrl", "duration" ], "title": "语音消息", "description": "当type为2时" }, { "type": "object", "properties": { "avatar": { "type": "string", "title": "头像" }, "coworker\t": { "type": "boolean", "title": "是否为内部员工" }, "friend": { "type": "boolean", "title": "是否为好友" }, "gender": { "type": "number", "title": "性别", "enum": [ 0, 1, 2 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知" }, { "name": "", "value": 1, "description": "男" }, { "name": "", "value": 2, "description": "女" } ] }, "wxid": { "type": "string", "title": "名片客户系统wxid" }, "name": { "type": "string", "title": "名字" }, "type\t": { "type": "number", "title": "类型", "enum": [ 0, 1, 2, 3 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知" }, { "name": "", "value": 1, "description": "个人微信" }, { "name": "", "value": 2, "description": "公众号" }, { "name": "", "value": 3, "description": "企业微信" } ] }, "weixin": { "type": "string", "title": "微信号/企业微信(名字全拼)" } }, "title": "名片消息", "description": "当type为3时", "x-apifox-orders": [ "avatar", "coworker\t", "friend", "gender", "wxid", "name", "type\t", "weixin" ], "required": [ "avatar", "coworker\t", "weixin", "type\t", "name", "wxid", "gender", "friend" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "聊天历史消息", "description": "当type为4时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "imageUrl\t": { "type": "string", "title": "表情地址" } }, "x-apifox-orders": [ "imageUrl\t" ], "title": "表情消息", "description": "当type为5时", "required": [ "imageUrl\t" ] }, { "type": "object", "properties": { "imageUrl": { "type": "string", "title": "压缩图片地址" }, "size": { "type": "number", "title": "图片地址大小" }, "artwork": { "type": "object", "properties": {}, "title": "原图数据", "x-apifox-orders": [] }, "artwork.height": { "type": "number", "title": "原图高" }, "artwork.width": { "type": "string", "title": "原图宽" } }, "title": "图片消息", "description": "当type为6时", "x-apifox-orders": [ "imageUrl", "size", "artwork", "artwork.height", "artwork.width" ], "required": [ "imageUrl", "artwork.width", "artwork.height" ] }, { "type": "object", "properties": { "text\t": { "type": "string", "title": "消息内容" }, "mention": { "type": "array", "items": { "type": "string" }, "title": "被@的人的wxid" } }, "title": "文字消息", "description": "当type为7时", "x-apifox-orders": [ "text\t", "mention" ], "required": [ "text\t" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "位置消息", "description": "当type为8时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "nickname": { "type": "string", "title": "封面图url" }, "url\t": { "type": "string", "title": "视频号地址" }, "appid": { "type": "string", "title": "关联的公众号ID" }, "description": { "type": "string", "title": "小程序描述" }, "pagePath": { "type": "string", "title": "跳转路径" }, "thumbKey\t": { "type": "string", "title": "封面图加密数据" }, "title": { "type": "string", "title": "小程序标题" }, "username": { "type": "string", "title": "小程序ID" }, "iconUrl": { "type": "string", "title": "icon地址" } }, "title": "小程序消息", "description": "当type为9时", "x-apifox-orders": [ "appid", "description", "pagePath", "thumbKey\t", "nickname", "title", "url\t", "username", "iconUrl" ], "required": [ "appid", "pagePath", "description", "username", "url\t", "title" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "钱相关消息", "description": "当type为10时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "撤回消息", "description": "当type为11时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "content": { "type": "string", "title": "消息内容转成字符串" } }, "title": "图文消息", "description": "当type为12时", "x-apifox-orders": [ "content" ], "required": [ "content" ] }, { "type": "object", "properties": { "videoUrl": { "type": "string", "title": "视频地址" }, "duration": { "type": "number", "title": "时长" }, "thumbnailUrl": { "type": "string", "title": "封面图地址" } }, "title": "视频消息", "description": "当type为13时", "x-apifox-orders": [ "videoUrl", "duration", "thumbnailUrl" ], "required": [ "videoUrl", "thumbnailUrl" ] }, { "type": "object", "properties": { "roomTopic": { "type": "string", "title": "群名" }, "avatarUrl\t": { "type": "string", "title": "群头像" }, "invitaterName": { "type": "string", "title": "邀请者名字" }, "inviteModelId": { "type": "string", "title": "邀请者记录id" }, "inviteStatus": { "type": "number", "title": "邀请状态", "enum": [ 0, 1, 2 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "已发送" }, { "name": "", "value": 1, "description": "成功" }, { "name": "", "value": 2, "description": "失败" } ] } }, "title": "入群邀请", "description": "当type为9999时", "x-apifox-orders": [ "roomTopic", "avatarUrl\t", "invitaterName", "inviteModelId", "inviteStatus" ], "required": [ "roomTopic", "invitaterName", "avatarUrl\t" ] }, { "type": "object", "properties": { "type": { "type": "number", "enum": [ 5, 6 ], "title": "\t类型", "x-apifox-enum": [ { "name": "", "value": 5, "description": "RECALL_MESSAGE_FAILED" }, { "name": "", "value": 6, "description": "ROOM_JOIN_MEMBER" } ] }, "subPayload": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "详情" }, "RecallFailedPayload.messageId": { "type": "string", "title": "消息id" }, "RoomJoinMemberPayload.memberNames": { "type": "array", "items": { "type": "string" }, "title": "入群联系人名字" }, "RoomJoinMemberPayload.inviterName": { "type": "string", "title": "邀请者姓名" } }, "title": "系统消息", "description": "当type为10000时", "x-apifox-orders": [ "type", "subPayload", "RecallFailedPayload.messageId", "RoomJoinMemberPayload.memberNames", "RoomJoinMemberPayload.inviterName" ], "required": [ "type", "subPayload" ] }, { "type": "object", "properties": { "wechatSystemPayloadType": { "type": "number", "enum": [ 0, 1, 2 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "入群" }, { "name": "", "value": 1, "description": "离群" }, { "name": "", "value": 2, "description": "群名称变更" } ] }, "subPayload": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "详情" }, "ContactInRoomSystemMessage.wxid": { "type": "string", "title": "群聊系统wxid" }, "ContactInRoomSysemMessage.isSelf\t": { "type": "string", "title": "是否是bot自己" }, "ContactInRoomSystemMessage.displayName": { "type": "string", "title": "展示名称" }, "RoomJoinPayload.inviter": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "邀请者信息" }, "RoomJoinPayload.inviteeList": { "type": "array", "items": { "type": "string" }, "title": "被邀请者信息" }, "RoomJoinPayload.timestamp": { "type": "number", "title": "时间戳" }, "RoomLeavePayload.remover": { "type": "object", "properties": {}, "title": "踢人者", "x-apifox-orders": [] }, "RoomLeavePayload.leaverList": { "type": "array", "items": { "type": "string" }, "title": "被踢者信息" }, "RoomLeavePayload.timestamp": { "type": "number", "title": "时间戳" }, "RoomTopicPayload.oldTopic": { "type": "string", "title": "旧群名" }, "RoomTopicPayload.newTopic": { "type": "string", "title": "新群名" }, "RoomTopicPayload.changer": { "type": "object", "properties": {}, "x-apifox-orders": [], "title": "修改者信息" }, "RoomTopicPayload.timestamp": { "type": "number", "title": "时间戳" } }, "title": "企微系统消息", "description": "当type为10001时", "x-apifox-orders": [ "wechatSystemPayloadType", "subPayload", "ContactInRoomSystemMessage.wxid", "ContactInRoomSysemMessage.isSelf\t", "ContactInRoomSystemMessage.displayName", "RoomJoinPayload.inviter", "RoomJoinPayload.inviteeList", "RoomJoinPayload.timestamp", "RoomLeavePayload.remover", "RoomLeavePayload.leaverList", "RoomLeavePayload.timestamp", "RoomTopicPayload.oldTopic", "RoomTopicPayload.newTopic", "RoomTopicPayload.changer", "RoomTopicPayload.timestamp" ], "required": [ "wechatSystemPayloadType", "RoomJoinPayload.timestamp", "RoomJoinPayload.inviteeList", "RoomJoinPayload.inviter", "subPayload", "RoomLeavePayload.leaverList", "RoomTopicPayload.newTopic", "RoomLeavePayload.timestamp", "RoomTopicPayload.timestamp", "RoomTopicPayload.changer" ] } ], "title": "消息内容" }, "roomId": { "type": "string", "title": "群聊的系统wxid" }, "contactId": { "type": "string", "title": "客户的系统wxid" }, "type": { "type": "number", "title": "消息的payload", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 9999, 10000, 10001 ], "x-apifox-enum": [ { "name": "", "value": 0, "description": "未知" }, { "name": "", "value": 1, "description": "文件" }, { "name": "", "value": 2, "description": "语音" }, { "name": "", "value": 3, "description": "名片" }, { "name": "", "value": 4, "description": "聊天历史" }, { "name": "", "value": 5, "description": "表情" }, { "name": "", "value": 6, "description": "图片" }, { "name": "", "value": 7, "description": "文字" }, { "name": "", "value": 8, "description": "位置" }, { "name": "", "value": 9, "description": "小程序" }, { "name": "", "value": 10, "description": "钱相关" }, { "name": "", "value": 11, "description": "撤回消息" }, { "name": "", "value": 12, "description": "图文消息" }, { "name": "", "value": 13, "description": "视频" }, { "name": "", "value": 15, "description": "语音/视频通话" }, { "name": "", "value": 16, "description": "群聊接龙消息(目前无法获取具体内容)" }, { "name": "", "value": 9999, "description": "入群邀请" }, { "name": "", "value": 10000, "description": "系统消息" }, { "name": "", "value": 10001, "description": "企业微信系统消息" } ] }, "timestamp": { "type": "string", "title": "消息时间戳" }, "botWxid": { "type": "string", "title": "托管账号对应成员的系统wxid" }, "botWeixin": { "type": "string", "title": "bot的企业微信userId" }, "mentionSelf": { "type": "boolean", "title": "当前消息是否@了托管账号" } }, "x-apifox-orders": [ "messageId", "chatId", "avatar", "roomTopic", "roomId", "contactName", "contactId", "payload", "type", "timestamp", "token", "botId", "contactType", "coworker", "botWxid", "botWeixin", "source", "sendBy", "isSelf", "mentionSelf", "externalUserId", "roomWecomChatId\t" ], "required": [ "timestamp", "mentionSelf" ] } }, "x-apifox-orders": [ "data" ], "required": [ "data" ] }'
{
"errcode": 0,
"errmsg": "string"
}