Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puregram

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puregram

Powerful Node.js package written on TypeScript that allows you to work with Telegram API

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
893
decreased by-11.85%
Maintainers
1
Weekly downloads
 
Created
Source

puregram

puregram is a powerful Node.js package that allows you to easily interact with Telegram API 🚀

Examples

Features

  • 100% Telegram API coverage
  • Works with JavaScript and TypeScript
  • Has 57 tests and all of them passes every build

Installation

Node.js 12.0.0 or newer is required

Yarn

yarn add puregram

NPM

npm i -S puregram

Example usage

import { Telegram, MessageContext } from 'puregram';

const telegram: Telegram = new Telegram({
  token: process.env.TOKEN
});

telegram.updates.on('message', (context: MessageContext) => {
  context.send('Hi!');
});

telegram.updates.startPolling().catch(console.error);

Thanks to

Biggest thanks to Negezor for his vk-io library that helped me with this package!

Telegram chat

Keywords

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc