发送文字消息
接口说明
#### 注意
在群内发送消息@某人时,content中需包含@xxx
请求参数
| 参数名 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
wechat-token | header | string | 必填 | — |
appId | body | string | 必填 | 设备ID |
toWxid | body | string | 必填 | 好友/群的ID |
content | body | string | 必填 | 消息内容 |
ats | body | string | — | @的好友,多个英文逗号分隔。群主或管理员@全部的人,则填写'notify@all' |
请求示例
{
"appId": "",
"toWxid": "",
"content": "",
"ats": ""
}响应示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"toWxid": "***********@chatroom",
"createTime": 1703841160,
"msgId": 0,
"newMsgId": 3768973957878705000,
"type": 1
}
}