notify_bots
v1.1.7
Published
```sh npm i --save notify_bots ```
Downloads
7
Readme
Usage
npm i --save notify_bots或
yarn add notify_bots创建一个 bot 对象来调用方法:
const Bot = require("notify_bots");
// class 第一个参数是群组设置里的 webhook 地址,设置了签名校验的话,第二个参数传入密钥。
const bot = new NotifyBot(
"https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
);
// 返回一个 Promise Promise 结果是飞书返回的 Response { StatusCode: 0, StatusMessage: 'success' }
bot.sendText("hello world!");参考仓库
https://github.com/peidayu/feishu-webhook-bot
