1.0.2 • Published 1 year ago

wl-teams-chatbot v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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);
  });
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago