puregram
Puregram is a powerful Node.js package that allows you to work with Telegram API 🚀
Installation
Node.js 8.0.0 or newer is required
Yarn
yarn add puregram
NPM
npm i puregram
Example usage
let { Telegram } = require('puregram');
let telegram = new Telegram({
token: process.env.TOKEN,
});
telegram.updates.on('message', context => context.send('Hi!'));
telegram.updates.startPolling().then(
() => console.log('Started polling')
);
Packages that may be useful to you
If you want to add your module in the list, create a new issue in the repository.
Bots that were made using puregram
If you want to see your bot here — PM me (I will add up to 10 bots here)
Thanks to
Biggest thanks to Negezor for his vk-io library that helped me with this package!
Chats
VK chat
Telegram chat