tatler-client
v1.4.5
Published
Client for tatler.jsbot.eu notification service
Downloads
15
Readme
TatlerBot NodeJS client
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);