- Typescript
- grammY
- TypeORM
- Install dependencies:
npm install
- Make
.env
file from.env.example
and provideBOT_TOKEN
andALLOWED_USERNAMES
values.ALLOWED_USERNAMES
is a comma-separated list of telegram usernames of bot admins. - Run postgresql database via provided docker-compose file:
docker compose up
- Run initial database migration through special script:
npm run db
- Run bot:
npm run dev
Can be deployed to any VPS or cloud service. I recommend using Railway for this purpose.