Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ejnshtein/telegraf-core
https://github.com/ejnshtein/telegraf-core
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ejnshtein/telegraf-core
- Owner: ejnshtein
- License: mit
- Created: 2020-02-06T11:56:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T23:38:09.000Z (over 4 years ago)
- Last Synced: 2024-03-02T19:11:34.245Z (10 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# @telegraf/core
[![node](https://img.shields.io/node/v/@telegraf/core.svg?style=flat-square)](https://www.npmjs.com/package/@telegraf/core)
[![Telegraf Version](https://img.shields.io/badge/Telegraf-3.36.0-f36caf.svg?style=flat-square)](https://telegraf.js.org)This is modern version of [Telegraf](https://telegraf.js.org) Bot Framework for [Telegram](https://telegram.org).
*Currently in development progress*
Future features:
- ESM modules
- Async/Await
- Working Typings*
- Small size*\* When it will actually be rewritten.
## InstallationCurrently 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
```js
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..._