How miyurudilakshan/premium-content-sharing-telegram-bot works
This is a single-file Telegram bot for distributing protected media through deep links. Admins upload media, configure protection and optional video previews, collages, or watermarks, then generate shareable links; users open links to access the media. The implementation excerpt confirms SQLite-backed media and user tables, parallel HTTP downloads, and media processing in bot.py. The README documents user-facing access, large-file support, administration, and Rekonise monetization, but their internal handlers are not shown, so those relationships are documented rather than source-verified.
Main entry points: bot.py Bot handlers
Components 17
Admin Workflow
- Bot handlers
bot.py - Media settings
bot.py - Admin controls
bot.py
Media Processing
- Uploaded media
bot.py - Parallel downloads
bot.py - MTProto transfer
bot.py - Video previews
bot.py - Frame collages
bot.py - Video watermark
bot.py
Link Delivery
- Deep-link creation
bot.py - Media database
bot.py - Protected access
bot.py
Monetization
- Unlock rewards
bot.py - Rekonise
Other components
- Content Admin
- Link User
- Telegram
Connections 17
- Content Admin → Telegram: sends media
README.md - Telegram → Bot handlers: delivers updates
README.md - Bot handlers → Media settings: configures
bot.py - Bot handlers → Admin controls: provides controls
README.md - Bot handlers → Uploaded media: receives media
README.md - Bot handlers → Parallel downloads: downloads parts
bot.py - Bot handlers → MTProto transfer: downloads large files
bot.py - Bot handlers → Video previews: generates previews
README.md - Bot handlers → Frame collages: generates collages
README.md - Bot handlers → Video watermark: applies watermark
bot.py - Bot handlers → Deep-link creation: creates links
README.md - Bot handlers → Media database: stores media
bot.py - Link User → Telegram: opens link
README.md - Telegram → Protected access: requests media
README.md - Protected access → Media database: reads media
bot.py - Bot handlers → Unlock rewards: offers unlocks
README.md - Unlock rewards → Rekonise: integrates rewards
README.md