A powerful, high-performance Telegram Bot + Userbot hybrid designed to bypass restricted content saving settings (protect_content) on channels and groups.
Easily download and re-upload restricted photos, videos, voice messages, documents, stickers, and animations directly to your chatβcompletely watermark-free and saveable!
- β‘ Turbo Parallel Downloader: Utilizes raw MTProto chunks downloading via up to 8 concurrent threads (1MB parts) for extreme speed.
- β‘ Smart File Caching: Instantly forwards cached file IDs for repeat links without downloading again.
- π¨ Premium Telegram UI: Beautifully formatted responses with Telegram's new native button colors (Success, Primary, Danger styles) and expressive icons.
- π Dual-Engine Integration: Python Telegram Bot (v22.7) for client interaction and Pyrogram for raw MTProto session fetching.
- π Universal Format Support: Photos, high-definition Videos, Documents, Audios, Voice notes, Stickers, and Animations.
- βοΈ Cloud Ready: Completely configured out-of-the-box for serverless deployment on Render.
Most telegram saver bots fail because they rely solely on the standard Telegram Bot API, which respects the server-side protect_content constraint.
Our bypass flow:
- Request: Paste any valid
t.me/...message link. - Fetch: An internal MTProto userbot (authenticated session) fetches the raw message directly from Telegram.
- Speedy Download: The media is downloaded locally in parallel chunks.
- Re-upload: The file is clean-uploaded via the Bot API directly to your chat, allowing you to freely copy, save, or forward it!
- Python 3.8+ installed.
- Telegram
API_ID&API_HASH(get it from my.telegram.org). - Telegram
BOT_TOKEN(get it from @BotFather).
git clone https://github.com/ajisth69/telegram-content-bypass.git
cd telegram-content-bypass/pyrogram-userbot
pip install -r requirements.txtAuthenticate your userbot session by running the helper script:
python gen_session.pyCopy the generated SESSION_STRING output.
Create a .env file inside the pyrogram-userbot/ folder:
API_ID=your_api_id
API_HASH=your_api_hash
BOT_TOKEN=your_bot_token
SESSION_STRING=your_session_stringpython main.pyThis repository is ready for immediate deployment on Render using the provided render.yaml profile:
- Fork this repository.
- Go to Render Dashboard -> Blueprints.
- Connect your repository.
- Provide environment variables (
BOT_TOKEN,SESSION_STRING) when prompted. - Deploy!
This bot makes use of Telegram Bot API 9.4+ features, utilizing:
style="success"(Green button style)style="primary"(Blue button style)style="danger"(Red button style)
Ensure your Telegram client is updated to the latest version to view the colored interactive buttons properly!
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is licensed under the MIT License - see the LICENSE file for details.
telegram telegram-bot telegram-userbot pyrogram telegram-bypass content-saver protect-content-bypass telegram-saver-bot save-restricted-content tg-bypass python-telegram-bot turbo-download media-downloader telegram-media-saver telegram-restricted