msgList 中每项通过 type 指定消息类型,msgData 使用相应发送消息接口的业务字段,无需传 toId。消息体随类型变化,请按对应类型提供字段;当前结构中的 content 说明适用于文本消息。curl --location 'https://console.wecomapi.com/wecom/finder/api' \
--header 'WECOM-TOKEN: ' \
--header 'Content-Type: application/json' \
--data '{
"method": "/msg/sendGroupMsg",
"params": {
"guid": "",
"msgList": [
{
"msgData": {
"content": "我是群发-文本类型"
},
"type": 0
}
],
"sendType": 1,
"toIdList": [
"{{toId}}"
]
}
}'{
"code": 0,
"data": {
"groupMsgId": 1120366371070430
},
"msg": "成功"
}