teleapiwrapperwrapper

0.1.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i teleapiwrapperwrapper

Weekly Downloads

0

Version

0.1.4

License

Beerware

Last publish

Collaborators

  • trgwii