An ultra-fast, interactive Telegram downloader powered by TDL.
Easily download ranges of messages (PDFs, Videos, etc.) from private or public channels by simply pasting links.
- Interactive Menu: No need to remember complex commands.
- Smart Link Detection: Paste full Telegram links (e.g.,
https://t.me/c/1234/100), and it auto-extracts the ID. - Bulk Downloading: Download hundreds of files (documents, media) in one go by specifying a range (e.g., Msg 400 to 700).
- Organization: Choose where to save your files or create new folders on the fly.
- Resumable: Downloads are handled by
tdlfor maximum speed and reliability.
-
Clone this repository:
git clone https://github.com/SONUKR321-hub/telegram-smart-downloader.git cd telegram-smart-downloader -
Ensure you have Python installed.
-
Setup TDL:
- The repository includes a
tdl/bin/tdl.exe(for Windows). - If you are on Linux/Mac, download the TDL binary and place it in the folder or update the path in the script.
- The repository includes a
-
Login (First Time Only): Before using the script, you must login to your Telegram account via TDL. Run this in your terminal:
.\tdl\bin\tdl.exe loginFollow the prompts to enter your phone number and OTP code.
Simply run the interactive Python script:
python interactive_tdl.pyOnce started, you will see:
=========================================
TELEGRAM DOWNLOADER APP
=========================================
1. Download Individually (via Link)
2. Download Range (ChatID + Start/End)
3. Exit
- Paste the link to the file/message you want.
- Select a folder to save it in.
- Chat ID: Paste the chat link (e.g.,
https://t.me/c/2732989224/411or just2732989224). - Start ID: Paste the link of the first message (e.g.,
.../411). - End ID: Paste the link of the last message (e.g.,
.../702). - Folder: Create a new folder (e.g., "Physics Notes") or pick an existing one.
The app will handle the rest! 🚀
interactive_tdl.py: The main magic script. 🧙♂️tdl/: Contains the core downloader engine.download_range.ps1: (Optional) A quick PowerShell helper for advanced users.
Feel free to open issues or submit pull requests to improve the tool!
Made with ❤️ by Kumar Sonu from MIT