@revotechuet/wi-notification
v1.0.5
Published
Downloads
3
Keywords
Readme
WI-NOTIFICATION
I2g simple notification package
Build
npm version patch
npm publish
git push
How to use
npm install @revotechuet/wi-notification@latest
Init
const wiNotification = require('./index');
let wiNoti = new wiNotification({
"user": "smtpuser",
"password": "smtppasswd",
"telegram": {
"bot_token": "bot:token",
"chat_id": "123456789"
}
});
wiNoti.sendMail({
to: "[email protected]",
messageHtml: "this is html <b>CONTENT</b>",
subject: "Hello"
});
Telegram
wiNoti.sendTelegramMessage({
text: "This is test text"
})
Slack
wiNoti.sendSlackMessage({
})