QyMsg
企业微信机器人,推送消息
Installing
Using npm:
$ npm install qymsg
Example
// 新建群组,添加机器人,查看机器人详情,获取key let isProduction = true; // 生产模式才真正地发送 // 单个key let qyMsg = 'fa14a5d5-4ad7-4104-9738-e03d0c2ea59f' isProduction; // 多个群 let qyMsg = keys: group1: 'fa14a5d5-4ad7-4104-9738-e03d0c2ea59f' group2: 'fa14a5d5-4ad7-4104-9738-e03d0c2ea59f' isProduction;
// 新建群组,添加机器人,查看机器人详情,获取key let isProduction = true; // 生产模式才真正地发送 // 单个key let qyMsg = 'fa14a5d5-4ad7-4104-9738-e03d0c2ea59f' isProduction; qyMsg; // 单个机器人单条消息 qyMsg; // @某人,指定手机号 qyMsg; // @all qyMsg; // markdown格式 // 多个key let qyMsg = keys: group1: 'fa14a5d5-4ad7-4104-9738-e03d0c2ea59f' group2: 'fa14a5d5-4ad7-4104-9738-e03d0c2ea59f' isProduction; // 多个key的要指定groupName qyMsg; // 单个机器人单条消息 qyMsg; // @某人,指定手机号 qyMsg; // @all qyMsg; // markdown格式