命令字type:robot.set.group.announcement
请求示例:#
{
"type": "robot.set.group.announcement",
"groupId": "R:10696052725010172",
"robotKey": "bcc23c5e76ab6887d51b0197cd017e66",
"messageId": "20200217102316325781544414",
"notice": "天上人间的公告"
}
请求参数说明:#
| 名称 | 类型 | 必须 | 描述 |
|---|
| type | String | 是 | robot.set.group.announcement |
| messageld | String | 是 | 请求消息id,32个字符的唯一,应答时原样回传 |
| robotKey | String | 是 | 机器人robotKey |
| groupId | String | 是 | 客户群conversationId,示例 "R:10813483155333331" |
| notice | String | 是 | 公告内容,示例:"这里是群公告" |
回调通知:#
回调通知接口 /XXXX/service/result
{
"robotKey":"ccbae8ae388c42609cb7f7c68d4c37ab",
"bizType":5,
"robotType":2,
"os":"win",
"isSendFromMac":1,
"code":"0",
"msg":"OK",
"sendTime":"2023-04-04 11:58:34",
"sendTimeTs":1680580714,
"dts":1680580714458,
"type":"robot.set.group.announcement",
"messageId":"202204041157202232434441",
"dataIds":[
849980430772547584
],
"groupId":"R:10908559322953122",
"notice":"服务无止境",
"routing":"SEND",
"siteCode":"wenode_win_test_0001",
"nodeServerCode":"node_server_0001"
}
参数说明:#