Telegram bot made using telegraf framework for downloading from real-debrid api.
create a .env.local
in root directory and set required value:-
TELEGRAM_BOT_TOKEN=
REAL_DEBRID_API_TOKEN=
POSTGRES_URL=
# If getting error with pm2 --no-daemon
PIDUSAGE_USE_PS=true
# Required if 'ip_not_allowed'
PROXY_HOST=
PROXY_PORT=
PROXY_USERNAME=
PROXY_PASSWORD=
Create a migration file using:-
npm run migration:generate
Run migration using:-
npm run migration:migrate
Push migration to database using:-
npm run migration:push
For Local development(nodemon) :-
npm run dev
For Production(pm2)
npm run start