teleapiwrapperwrapper
v0.1.4
Published
Wraps a longpoller and Event Emitter around teleapiwrapper
Downloads
10
Readme
Usage:
Importing:
const { createBot } = require('teleapiwrapperwrapper');
// or
const createBot = require('teleapiwrapperwrapper').createBot;
All API-options from teleapiwrapper are available, as well as an extensive event emitter:
const bot = createBot('my-secret-token');
bot.on('text', message => console.log(message.text));
bot.on('new_chat_participant', message => console.log(message.new_chat_participant));
bot.on('inline_query', inline_query => console.log(inline_query));
Look at the glorious code for more documentation