Upload telegram files to mega.nz. Demo: @filetomega_bot
Enviroment variables you need to set:
API_ID
: Go to my.telegram.org to obtain this.
API_HASH
: Go to my.telegram.org to obtain this.
TG_BOT_TOKEN
: Get the bot token from BotFather.
DB
: PostgreSQL connect string.
Setup:
- Create bot in BotFather.
- Obtain API_ID and API_HASH on my.telegram.org.
- Create postgresql database and table (database.sql).
- Set all enviroment variables.
- Run
main.py
.