右键群——》新建机器人就可以新增一个机器人,记下机器人的WebHook,
它是机器人的唯一标识。
之后使用CURL的指令方式就可以发东西到群里了。
注意点:每分钟发送消息不超过20条。
特点:可以发送图片、@别人、文件(要求文件大小在5B~20M之间)、字体颜色、
curl ‘https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=180-bcdc-40b9-adf9-ffa4’ -H ‘Content-Type: application/json’ -d ’ { “msgtype”: “text”, “text”: { “content”: “上班打卡啦!!!”, “mentioned_list”:["@all"] } }’
curl ‘https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=80-bcdc-40b9-adf9-ffa46’ -H ‘Content-Type: application/json’ -d ’ {“msgtype”: “news”,“news”: {“articles” : [ { “title” : “上班打卡”, “description” : “要开始搬砖了”, “url” : “https://baidu.com”, “picurl” : “https://pic.cr173.com/up/2017-2/14877370356105314.jpg” } ] }}’