A telegram bot for tracking how many times each player won a hltv fantasy for csgo tournaments.
This bot requires deno runtime to run.
- You need PostgreSQL database running somewhere (e.g. on railway)
- Get token for your bot from BotFather
- Create
.env
file and putPORT
,DATABASE_URL
andBOT_TOKEN
variables. - Run
deno --allow-all src/index.ts
- Use ngrok to put your localhost on the internet.
- Setup a webhook by requesting
https://api.telegram.org/bot<token>/setWebhook?url=<url>?secret=<token>