How tushar557845/tushar-drm-txt-uploader works
This repository is a Telegram bot for turning submitted text link lists into downloadable and uploaded media files. Users start an upload command, provide a text file and processing options, and the bot processes its entries before sending results back through Telegram. The main file also implements status, stop/restart, and owner-managed sudo commands. Supporting code handles downloads, decryption, media/PDF work, and progress updates. README documents the bot’s command set; sampled excerpts show only parts of the processing branches, so unsampled relationships are omitted.
Main entry points: main.py Link processing · helper.py Media downloads · p_bar.py Progress updates · config.py Bot configuration
Components 18
Telegram bot
- Bot commands
main.py - Sudo management
main.py - Text upload
main.py - Batch options
main.py - Link processing
main.py - Result delivery
main.py
Media processing
- Media downloads
helper.py - DRM decryption
helper.py - Video upload prep
helper.py - PDF processing
helper.py - Video metadata
get_video_info.py
Runtime support
- Progress updates
p_bar.py - Bot configuration
config.py - Logging
logger.py
HTTP endpoint
- Health endpoint
app.py
Other components
- Telegram user
- Telegram API
- HTTP client
Connections 16
- Telegram user → Bot commands: sends commands
README.md - Bot commands → Sudo management: checks permissions
main.py - Telegram user → Text upload: submits file
main.py - Text upload → Batch options: requests options
main.py - Batch options → Link processing: configures batch
main.py - Link processing → Media downloads: downloads files
main.py - Link processing → DRM decryption: requests decryption
main.py - Link processing → PDF processing: downloads PDFs
main.py - DRM decryption → Video upload prep: prepares video
helper.py - Link processing → Result delivery: sends results
main.py - Result delivery → Telegram API: uploads documents
main.py - Media downloads → Progress updates: updates progress
helper.py - Video upload prep → Telegram API: sends video
helper.py - Link processing → Bot configuration: reads settings
main.py - Link processing → Logging: uses logger
main.py - HTTP client → Health endpoint: requests health
app.py