Indiavinodkr494/telegram-media-downloader
🚀 Bulk-download videos, images, PDFs, audio & more from any Telegram channel or group. Modern PySide6 GUI, category browser, real-time search, parallel downloads, smart deduplication, speed limiter, proxy support, dark/light theme, and persistent queue — cross-platform.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
Telegram Bulk Media Downloader
🚀 Bulk-download videos, images, PDFs, audio & more from any Telegram channel or group. Features a Premium PySide6 Dashboard with high-performance analytics, Global Queue Tracking (Total progress % & Session usage), Advanced Task Management (Prioritize & Cancel), category browser, real-time search, parallel downloads, smart deduplication, speed limiter, proxy support, and desktop notifications.
🗄️ SQLite Persistence Engine
Transitioned from legacy JSON files to a robust, indexed SQLite database. All tasks, message IDs, and download states are now stored with full data integrity.
🚀 Instant Media Browser
Experience zero-wait browsing. The application now caches all media types locally, allowing you to open the browser instantly with previously fetched data while the background worker refreshes the list from Telegram.
📏 768p Display Optimization
Refined UI dimensions and dialog heights (max 650px) to ensure a perfect fit on standard laptop displays and low-resolution monitors.
🛡️ Channel-Isolated Progress
Eliminated cross-channel ID collisions. Download completion and selection status are now tracked independently per channel, ensuring 100% accuracy in large queues.
🎨 Theme-Aware Context Menus
Context menus (Right-Click) now dynamically adopt the application's theme, providing a consistent premium experience in both Light and Dark modes.
Features
- 💎 Premium Sidebar — sleek, icon-based navigation with professional typography
- 📊 Global Dashboard Status — real-time session stats, total progress %, and combined speed
- 🔔 Native Notifications — system-level alerts when your downloads are ready
- 🖱 Intuitive Gestures — double-click cards to open folders; auto-focus search on open
- 🔄 Queue Prioritization — move entire download batches up or down to manage your queue
- 🔍 Media Browser Search — live filter bar to find any file by name instantly
- ✅ Selection Counter — "X of Y files selected" counter updates as you tick boxes
- 📥 Empty State Screens — friendly placeholders on Home and Downloads before any tasks are added
- 📂 Media Browser — category-based file browser (Media, Files, Music, Links, GIFs)
- ⚡ Parallel Fetch — all categories load simultaneously via
asyncio.gather(~5x faster) - 🔁 Smart Deduplication — skips already-downloaded files by name and size
- ⏸ Concurrent Downloads — configurable parallel streams with pause / resume support
- 📊 Per-file Progress Bars — live speed display (KB/s / MB/s) per file
- Speed Limiter — configurable max download speed in Settings
- Proxy Support — SOCKS4, SOCKS5, HTTP, and MTProto configuration
- Theme Toggle — Light and Dark mode with persistent session saving
- Persistent Queue — saves and restores on restart automatically
- Cross-Platform — standalone executables for Windows, Linux, and macOS
Screenshots
Requirements
- Python 3.8+
- Telegram API credentials (API ID and API Hash)
Installation
Method 1: Download the Executable (Recommended)
- Go to the Releases page.
- Download the latest
TGDownloader-vX.X.X-Windows.exe(or your OS version). - Run directly — no Python or installation required!
Note: Windows may show a "Smart App Control" warning because the executable is unsigned. Click More info → Run anyway.
Method 2: Run from Source
-
Clone the repository:
git clone https://github.com/vinodkr494/telegram-media-downloader.git cd telegram-media-downloader -
Install dependencies:
pip install -r requirements.txt -
Create a
.envfile:API_ID=your_api_id API_HASH=your_api_hash SESSION_NAME=default_session -
Run the GUI:
python src/gui.py
Usage
- Log in with your Telegram API credentials and phone number.
- On the Home tab, enter a channel username (e.g.
@channelname) or channel ID (e.g.-100123456789). - Click 🔍 Fetch Media to open the Media Browser.
- Browse files by category — use Select All or check individual files.
- Click Download Selected to add them to your queue.
- Track live progress, total queue stats, and session throughput in the Downloads tab.
Resuming Downloads
Progress is saved automatically. Restart the app and your queue resumes seamlessly, skipping already-completed files.
Configure Concurrent Downloads
Go to Settings → Download Limit to adjust how many files download simultaneously (default: 5).
Changelog
v2.7.1
- 🍎 Intel Mac Support: Added support for Intel-based Macs (x86_64 architecture). The build workflow now produces separate
.dmginstallers for both Apple Silicon (ARM64) and Intel Macs, ensuring full compatibility across all macOS devices.
v2.6.7
- 🛠️ Fixed PhotoSize Deduplication Bug: Fixed the
AttributeError: 'PhotoSize' object has no attribute 'location'error that occurred during deduplication checks before download in Telethon 1.38.1. - 🎨 UI Layout Improvements: Fixed vertical alignment of the bulk download checkboxes on the "Ready for Bulk Download" page and eliminated visual stretching.
- 🔤 Font Warnings Fix: Replaced point-based font sizes (
8.5pt) with pixel-based (11px) in stylesheets to eliminateQFont::setPointSizeterminal warnings and ensure consistent, cleaner font rendering.
v2.6.6
- 🍎 macOS DMG Fix: Completely refactored the macOS build process to produce a working
.dmginstaller with a proper.appbundle. - 📦 Improved CI/CD: Updated GitHub Actions to automate DMG creation using
dmgbuild. - 🛠️ Build Optimization: Simplified build scripts and unified artifact naming across Windows, Linux, and macOS.
v2.6.5
-
⚙️ Custom Scan Limit: Added support for configuring the initial media fetching limit in Settings (previously hardcoded to 500).
-
🎨 Premium Sponsor Site: Launched a dedicated, professional landing page to showcase project impact and support options.
-
🧹 Maintenance: Internal refactoring to improve data persistence and scanning reliability.
v2.6.4
- 🧵 Forum Topic Support: Full support for downloading from specific Telegram forum topics and sub-channels using the
channelID_topicIDformat or direct topic URLs. - 🐞 Parse Engine Fixes: Enhanced task ID management and parsing logic to seamlessly pause and resume topic-scoped tasks.
- 🛡️ GetRepliesRequest Fix: Refactored
client.get_messagesimplementation to prevent API crashes when querying default message feeds.
v2.6.3
- 🛠️ Fixed Photo Download Bug: Resolved the critical
AttributeError: 'PhotoSize' object has no attribute 'location'that prevented image downloads in Telethon 1.38.1. - 🛡️ Robust Fallback Engine: Implemented a multi-strategy download system for photos to handle Telegram API layer regressions across different versions.
v2.6.2
- 🛠️ Refined Instant Loading: Improved cached media UI mapping to show exact file sizes and dynamic emojis without visual lag.
- 🛑 Robust Background Fetching: Fixed Telethon's internal "closed the connection" drops by pacing parallel chunk streams more smoothly.
- ⚡ Resilient Resuming: Solved a critical file-resumption bug by accurately instructing the download engine via explicit pathing, preventing offset overrides and 0-byte restarts.
- 🎨 Responsive UX: Instant loading indications are now immediately flushed to the UI queue for zero perceived wait time during database queries.
v2.6.0
- 🗄️ SQLite Persistence Engine — transitioned from legacy JSON files to a robust, indexed SQLite database for all tasks and download history.
- 🚀 Instant Media Browser — introduced high-performance content caching. Browse previously fetched media instantly while the app refreshes in the background.
- 📏 768p Display Optimization — refined window heights and dialog constraints to ensure a perfect fit on standard laptop and low-resolution displays.
- 🛡️ Channel-Isolated Progress — eliminated cross-channel ID collisions. Download progress and completion status are now tracked independently per channel.
- 🎨 Theme-Aware Menus — context menus now dynamically adopt Light/Dark mode styling for a cohesive premium experience.
v2.5.0
- 🎨 UI Overhaul — replaced legacy emoji-based navigation with professional, high-quality icon assets and refined QSS typography.
- 📊 Global Analytics — introduced real-time session data, total completion %, and consolidated status bar metrics.
- ⚡ Queue Mastery — added Cancel (Remove) and Prioritize (Up/Down) functionality to the download cards.
- 🔔 Native Feedback — implemented desktop notifications for task completion and an enhanced tray context menu.
- 🖱 Double-Click Gestures — double-click task cards to jump directly to the download folder.
- 🔍 Search Focus — auto-focuses the search bar upon opening the Media Browser for faster filtering.
v2.4.7
- 💾 Robust Persistence — centralized all persistent files (
.env,config.json,download_state.json,active_tasks.json, and.session) fixing persistence issues in standalone builds. - 🌓 Improved .env Logic — added automatic quote stripping for
API_IDandAPI_HASHand persistedPHONEfor a seamless login experience. - 🛡️ Path Resolver Sync — ensured all UI components and background workers use the centralized
get_project_roothelper.
v2.4.5
- ⏯️ Pause Reliability — implemented active task tracking to prevent duplicate background threads; clicking "Pause" now reliably stops all activity for that task immediately
- 📐 Sidebar Polish — reduced layout margins and button margins to ensure "Light Mode" and "Dark Mode" labels fit within the 85px sidebar on all displays
- 💾 Persistent Resume — fixed a state-management bug that caused paused tasks to auto-resume unexpectedly after a restart
v2.4.4
- 🔗 Invite-Link Download Fix — fixed
FileReferenceExpiredErrorfor private channels joined via invite links by manually refreshing the message entity on retry - 🌓 Cross-Platform Dark Mode Detection — app now auto-detects OS dark mode at startup (Windows registry, macOS
defaults, Linuxgsettings/$GTK_THEME) - 🎨 Startup Theme Fix — eliminated black flash on Windows Dark Mode; sidebar toggle button now syncs to the detected theme on launch
- 💾 Theme Persistence — user's chosen theme is saved to
config.jsonand restored on next launch, overriding the system default
v2.4.3
- 🆔 Robust Numeric IDs — aggressively normalizes private channel numeric IDs (automatically applying
-100prefixes) to preventPeerUserfetch errors - 📦 Deep Dialog Scanning — automatically requests and searches all
Archiveddialogs if a private channel ID isn't found in the active chat list - 🛑 Error Diagnostics — updated MainWindow status tracking to avoid getting stuck "Fetching..." forever when an ID lookup fundamentally fails
v2.4.2
- 🎭 Premium Card UI — implemented a sleek card-based layout for the media browser tabs
- 💾 Persistent Themes — fixed theme restoration bug, ensuring light/dark mode sticks across sessions
- 🧹 UI Cleanup — refined empty state logic and dynamic visibility of queue controls
- 🐞 General Fixes — resolved several minor layout and focus issues for a more stable experience
v2.4.1
- 🚀 Full PySide6 Rewrite — migrated from CustomTkinter for native performance
- 🏗️ Modular UI — sidebar navigation with dedicated views (Home, Queue, Settings)
- 🌑 Premium Theming — full QSS-based Light/Dark mode support
- 🔒 Enhanced Auth — multi-step Phone/OTP/2FA login flow
- 📊 Improved Queue — per-task download cards with robust pause/resume/cancel
- 📁 Modular Workers — thread-safe
TelegramWorkerfor background operations - ⚙️ Config Persistence — settings now save to
config.jsonautomatically
v2.3.0
- ✅ Animated braille spinner on the Fetch Media overlay
- ✅ Real-time search/filter bar inside every Media Browser tab
- ✅ Live
"X of Y files selected"counter (turns green when files are selected) - ✅ Toast notification on download queue completion (bottom-right, 3s auto-dismiss)
- ✅ Empty state screens for Home and Downloads views on fresh launch
- ✅ Fixed
Download Selectedmodal not closing (tuple unpacking bug from v2.3 refactor) - ✅ Updated About screen with v2.3 features and responsible-use warning
- ✅ Full
CONTRIBUTING.mdwith setup guide, architecture, and PR checklist - ✅ Legal Disclaimer added to README
v2.2.0
- ✅ Added Media Browser with category tabs (Media, Files, Music, Links, GIFs)
- ✅ Parallel category fetching with
asyncio.gather(~5x faster) - ✅ Per-file deduplication (skip existing files at correct size)
- ✅ Speed Limiter slider in Settings
- ✅ Fixed phantom pause bug (
asyncio.CancelledErrorin progress callback) - ✅ Fixed
sqlite3 database is lockedcrash on download start - ✅ Fixed
Select Allnot properly queuing files for download - ✅ Fixed UI freeze caused by progress event flooding
v2.1.0
- ✅ Proxy support (SOCKS4/5, HTTP, MTProto)
- ✅ Dark/Light theme toggle
- ✅ Persistent download queue across restarts
v2.0.0
- ✅ Complete UI rewrite — modern CustomTkinter dashboard
- ✅ Sidebar navigation, download cards, per-file progress bars
- ✅
cryptghardware acceleration for fast Telegram downloads
Roadmap
We are currently focused entirely on stabilizing and improving the robustness of existing features.
If you have an idea or suggestion for a new feature, please join our GitHub Discussions (Ideas) instead of opening an issue. Issues are now strictly reserved for bug reports.
⚠️ Legal Disclaimer
[!CAUTION] This tool is intended for personal and legitimate use only.
- Only download content from channels and groups you own or have explicit permission to access.
- Respect Telegram's Terms of Service at all times.
- Do not use this tool to infringe copyright, redistribute paid content, or violate anyone's privacy.
- The author and contributors are not responsible for any misuse, damages, or legal consequences arising from the use of this software.
- Use entirely at your own risk.
This software interacts with Telegram's official API via Telethon. It does not bypass any Telegram security mechanisms.
Contributing
We welcome contributions of all kinds! Please read the CONTRIBUTING.md file for the full guide including:
- Environment setup
- Project architecture
- Commit message conventions
- PR checklist
- Areas that need help
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
- Telethon — Telegram API integration
- PySide6 — Native Python bindings for Qt WebEngine/Widgets
- cryptg — C-based crypto for fast downloads
- Pillow — Image processing
🌟 About The Project
Telegram Bulk Media Downloader is a high-performance, open-source initiative dedicated to providing a premium, desktop-native solution for archiving and managing Telegram content.
Our mission is to bridge the gap between complex terminal-based downloaders and the user-friendly experience that modern creators and researchers deserve. By combining the robust Telethon engine with a world-class PySide6 Dashboard, we've created a tool that is both incredibly powerful and effortless to use.
☕ Support & Donation
If you find this tool helpful and want to support its continued development, please consider:
- ⭐ Star this repository to help others find it.
- 💖 Sponsor on GitHub: Sponsor @vinodkr494
Your support helps cover the costs of testing, maintenance, and new features!
Made with ❤️ by Vinod Kumar.
Similar Projects
Discover other similar projects and AI models.
Reverse engineer anything with agents, from app behavior down to native binaries.
2026最新悄咪咪收集的10000+个Telegram群和频道合集,附全网最有趣好用的机器人BOT🤖,聚合电报导航、电报推荐各种高质量站点。
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.