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

@telegraf/core

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telegraf/core

Next generation Telegraf

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@telegraf/core

node Telegraf Version

This is modern version of Telegraf Bot Framework for Telegram.

Currently in development progress

Future features:

  • ESM modules
  • Async/Await
  • Working Typings*
  • Small size*

* When it will actually be rewritten.

Installation

Currently in order to use this package, you should install telegraf first.

npm i telegraf@latest // Latest version is recommended.

And now we can install our wrapper

$ npm install @telegraf/core

or using yarn:

$ yarn add @telegraf/core

Usage

import Telegraf from '@telegraf/core'

const bot = new Telegraf('token')

bot.start(async ctx => {
  return ctx.reply(`Hello ${ctx.from.username} !`)
})

bot.start()

But why?

This package aims to reduce end project size by splitting all secondary features into a bunch of smaller ones.
More coming soon...

FAQs

Package last updated on 11 Jun 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