https://github.com/ejnshtein/telegraf-core
https://github.com/ejnshtein/telegraf-core
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ejnshtein/telegraf-core
- Owner: ejnshtein
- License: mit
- Archived: true
- Created: 2020-02-06T11:56:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T23:38:09.000Z (about 5 years ago)
- Last Synced: 2024-10-07T16:21:06.309Z (9 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
[](https://www.npmjs.com/package/@telegraf/core)
[](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..._