An open API service indexing awesome lists of open source software.

https://github.com/xzeldon/telegram-bot-starter

Telegram bot starter template based on grammY framework
https://github.com/xzeldon/telegram-bot-starter

bot grammy starter telegram template

Last synced: 2 months ago
JSON representation

Telegram bot starter template based on grammY framework

Awesome Lists containing this project

README

        

# Telegram bot starter template based on [grammY](https://grammy.dev)

* Based on [telegram-bot-starter
](https://github.com/Borodutch/telegram-bot-starter) by [@Borodutch](https://github.com/Borodutch). Modified according to the [author's](https://github.com/xzeldon) preferences.

## Installation and local launch

1. Clone this repo: `git clone https://github.com/xzeldon/telegram-bot-starter`
2. Launch the [mongo database](https://www.mongodb.com/) locally
3. Create `.env` with the environment variables listed below
4. Run `yarn` in the root folder
5. Run `yarn dev`

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

## Environment variables

- `TG_TOKEN` — Telegram bot token
- `MONGO_URI` — URL of the mongo database
- `MONGO_DB_NAME` — Name of the mongo database

Also, please, consider looking at `.env.sample`.

## License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

## Acknowledgements
* Repo: [telegram-bot-starter
](https://github.com/Borodutch/telegram-bot-starter) by [@Borodutch](https://github.com/Borodutch).