This package has been deprecated

Author message:

No longer developed; switch to telegraf

@telegraf/core
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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...

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i @telegraf/core

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

3.32 kB

Total Files

7

Last publish

Collaborators

  • ejnshtein
  • mkrhere
  • telegraf-owner
  • wojpawlik