Telegram bot to download files on Telegram with no size limit.
- Python 3.7+
- Install this bot:
git clone https://github.com/RtiM0/telegram-download-bot.git cd telegram-download-bot python3 -m venv env source env/bin/activate python -m pip install -r requirements.txt deactivate
- Set your Bot Token (can be obtained by @BotFather) in
line 14
Set your output directory to store the downloaded files inTOKEN = "BOT-TOKEN"
line 16
OUTPUT_DIR = "/home/potato/tgdownloadbot/"
- You need to run Telegram Bot API Server locally on your machine to bypass the 20MB Download limit imposed with official Bot API. Use this guide to quickly install Telegram Bot API Server locally.
- Run the Telegram Bot API Server
cd telegram-bot-api/bin/ ./telegram-bot-api --api-id <API-ID> --api-hash <API-HASH> --local
- In a new terminal run the bot.
cd telegram-download-bot source env/bin/activate python bot.py
Just send or forward the bot any document and it will download it on your server!