0.1.4 • Published 8 years ago
teleapiwrapperwrapper v0.1.4
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