Telegram bot starter based on grammY
October 23, 2021 · View on GitHub
Please, enjoy this starter template for Telegram bots based on grammY. It includes most common middlewares, MongoDB integration, language picker and internationalization and shows basic encapsulation techniques used by me.
Installation and local launch
- Clone this repo:
git clone https://github.com/Borodutch/telegram-bot-starter - Launch the mongo database locally
- Create
.envwith the environment variables listed below - Run
yarnin the root folder - Run
yarn develop
And you should be good to go! Feel free to fork and submit pull requests. Thanks!
Environment variables
TOKEN— Telegram bot tokenMONGO— URL 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!