Telegram bot starter based on grammY https://templates.borodutch.com
  • TypeScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nikita Kolmogorov afc2d4e071 Add funding links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:24:56 -07:00
.github Add funding links 2026-10-08 15:24:56 -07:00
.vscode remove bracket pair colorizer 2021-12-13 20:22:19 -08:00
.yarn upgrade dependencies 2021-11-20 10:38:14 -08:00
locales Fixup locales after da239d0476 2021-11-21 16:27:13 +01:00
src fix updating 2021-12-21 13:05:35 -08:00
.env.sample upgrade dependencies and fix eslint 2021-11-01 16:45:46 +00:00
.eslintrc.json add envalid 2021-11-29 14:18:07 -08:00
.gitignore switch to new yarn 2021-11-20 09:01:50 -08:00
.prettierrc.json upgrade dependencies and switch to grammy 2021-10-23 13:40:32 -07:00
.yarnrc.yml upgrade dependencies 2021-11-20 10:38:14 -08:00
LICENSE initial commit 2019-04-16 20:18:02 -07:00
package.json remove mongoose-findorcreate 2021-12-21 13:00:48 -08:00
README.md Update README.md 2021-10-23 14:17:04 -07:00
tsconfig.json turn on strict 2021-11-23 11:08:43 -08:00
yarn.lock remove mongoose-findorcreate 2021-12-21 13:00:48 -08:00

Telegram bot starter based on grammY

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

  1. Clone this repo: git clone https://github.com/Borodutch/telegram-bot-starter
  2. Launch the mongo database locally
  3. Create .env with the environment variables listed below
  4. Run yarn in the root folder
  5. Run yarn develop

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

Environment variables

  • TOKEN — Telegram bot token
  • MONGO — 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!