1.0.2 • Published 1 year ago
wl-teams-chatbot v1.0.2
Node.js wrapper for MS teams bot
Using this package we can post messages to teams channel
Installation
npm install wl-teams-chatbot
Initialize
import TeamsBot from "wl-teams-chatbot";
let wlobj = new TeamsBot('TEAMS_CHANNEL_INCOMING_WEBHOOK_URL');
Process steps for getting teams incoming webhook url
Usage
Send message to channel
let title = 'message title'
let message = 'Hello world!'
wlobj.postMessage(title, message)
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
});