Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.09 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.09 KB

TatlerBot NodeJS client

js-standard-style semantic-release NPM

NodeJS client for sending notifications to @TatlerBot Telegram bot.

Usage:

const tatler = require('tatler-client');
const clientLong = tatler({PipeName: 'PipeSecret', Pipe2Name: 'Pipe2Secret', ...});
clientLong('PipeName', 'Any message', callback);
clientLong('Pipe2Name', 'Any message').then(handler);

const clientShort = tatler({PipeName: 'PipeSecret', Pipe2Name: 'Pipe2Secret', ...}, 'PipeName');
clientShort('Any message', callback);
clientShort('Any message').then(handler);

const clientOnePipe = tatler({PipeName: 'PipeSecret'});
clientOnePipe('Any message', callback);
clientOnePipe('Any message').then(handler);