1.0.0 • Published 3 years ago
@jandyqin/wechatrobot v1.0.0
wechatrobot 是一个发布消息到企业微信机器人
安装
需要安装node环境
npm install -g @jandyqin/wechatrobot
const app = require("@jandyqin/wechatrobot");
var media_id="media_id";
app.send({ msgtype: 'file', file: { media_id } },robotKey).then(result=>{
console.log(result)
}).catch(error=>{
console.error(error)
});
var file_path = "file_path";
app.upload(file_path, robotKey).then(result=>{
console.log(result)
}).catch(error=>{
console.error(error)
});
1.0.0
3 years ago