企业微信机器人

 requests.post('https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=你的机器人的key',
 headers={'Content-Type': 'application/json'},data=json.dumps({'msgtype': 'text','text':{'mentioned_list': '你要艾特的人','content': '{}'.format(msg)}}, ensure_ascii=False))
posted @ 2020-11-03 15:39  公众号python学习开发  阅读(543)  评论(0编辑  收藏  举报