How tangyoha/telegram_media_downloader works
Telegram Media Downloader supports one-shot downloads and a Telegram bot workflow, with a web interface for operation. In the download path, Telegram messages are selected from configured chats, optionally filtered, then media is downloaded and saved; bot commands also support forwarding and monitoring. Configuration covers media types and formats, file organization, and optional cloud-drive uploads. The source index supports the principal runtime dependencies shown below; unsampled implementations and dynamic web wiring limit certainty about some subsystem links.
Main entry points: media_downloader.py Downloader entry · bot.py Bot commands · web.py Web interface · app.py App configuration
Components 16
Message intake
- Downloader entry
media_downloader.py - Bot commands
module/bot.py - Chat history
module/get_chat_history_v2.py
Download processing
- App configuration
module/app.py - Message filters
module/filter.py - Message metadata
utils/meta_data.py - Media transfer
module/pyrogram_extension.py - Media groups
module/send_media_group_v2.py - Download status
module/download_stat.py
User interfaces
- Web interface
module/web.py - Translations
module/language.py - Web crypto assets
module/static/aes/crypto-js-master
Storage and services
- Local file output
media_downloader.py - Cloud-drive upload
module/cloud_drive.py
Other components
- User
- Telegram
Connections 25
- User → Downloader entry: runs once
- User → Bot commands: issues commands
- User → Web interface: uses interface
- Downloader entry → App configuration: loads config
media_downloader.py - Downloader entry → Chat history: reads history
media_downloader.py - Downloader entry → Media transfer: uses transfer
media_downloader.py - Downloader entry → Bot commands: starts bot
media_downloader.py - Downloader entry → Web interface: starts web
media_downloader.py - Bot commands → App configuration: uses settings
module/bot.py - Bot commands → Chat history: checks messages
module/bot.py - Bot commands → Message filters: uses filters
module/bot.py - App configuration → Message filters: uses filters
module/app.py - Message filters → Message metadata: evaluates fields
module/filter.py - Media transfer → Media groups: sends groups
module/pyrogram_extension.py - Media transfer → Download status: updates progress
module/pyrogram_extension.py - Downloader entry → Download status: tracks tasks
media_downloader.py - Downloader entry → Local file output: saves media
media_downloader.py - App configuration → Cloud-drive upload: configures uploads
module/app.py - Cloud-drive upload → Local file output: uploads saved files
- Web interface → App configuration: uses application
module/web.py - Web interface → Download status: shows status
module/web.py - Web interface → Web crypto assets: uses crypto assets
- Bot commands → Translations: localizes messages
module/bot.py - Telegram → Chat history: provides messages
- Media transfer → Telegram: downloads media