Skip to content

This is template project for my telegram bots written in typescript.

License

Notifications You must be signed in to change notification settings

yanislav-igonin/tg-bot-template

Repository files navigation

Telegram Bot Template

Stack

  • Typescript
  • grammY
  • TypeORM

Run

  1. Install dependencies:
npm install
  1. Make .env file from .env.example and provide BOT_TOKEN and ALLOWED_USERNAMES values. ALLOWED_USERNAMES is a comma-separated list of telegram usernames of bot admins.
  2. Run postgresql database via provided docker-compose file:
docker compose up
  1. Run initial database migration through special script:
npm run db
  1. Run bot:
npm run dev

Deploy

Can be deployed to any VPS or cloud service. I recommend using Railway for this purpose.

About

This is template project for my telegram bots written in typescript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published