Skip to content

Restricted Content Downloader: An advanced Telegram bot script to download restricted content such as photos, videos, audio files, or documents from Telegram private chats or channels. This bot can also copy text messages from Telegram posts.

Notifications You must be signed in to change notification settings

bisnuray/RestrictedContentDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Restricted Content Downloader Telegram Bot

GitHub Repo stars GitHub issues GitHub pull requests GitHub contributors GitHub forks

Restricted Content Downloader: An advanced Telegram bot script to download restricted content such as photos, videos, audio files, or documents from Telegram private chats or channels. This bot can also copy text messages from Telegram posts.


Features

  • 📥 Download media (photos, videos, audio, documents).
  • ✅ Supports downloading from both single media posts and media groups.
  • 🔄 Progress bar showing real-time downloading progress.
  • ✍️ Copy text messages or captions from Telegram posts.

Requirements

Before you begin, ensure you have met the following requirements:

  • Python 3.8 or higher.
  • pyrofork, pyleaves and tgcrypto libraries.
  • A Telegram bot token (you can get one from @BotFather on Telegram).
  • API ID and Hash: You can get these by creating an application on my.telegram.org.
  • To Get SESSION_STRING Open @SmartUtilBot. Bot and use /pyro command and then follow all instructions.

Installation

To install pyrofork, pyleaves and tgcrypto, run the following command:

pip install pyrofork tgcrypto pyleaves

Note: If you previously installed pyrogram, uninstall it before installing pyrofork.

Configuration

  1. Open the config.py file in your favorite text editor.
  2. Replace the placeholders for API_ID, API_HASH, SESSION_STRING, and BOT_TOKEN with your actual values:

Deploy the Bot

git clone https://github.com/bisnuray/RestrictedContentDL
cd RestrictedContentDL
python main.py

Usage

  • /start – Welcomes the user and gives a brief introduction.
  • /help – Provides detailed instructions on how to use the bot.
  • /dl <post URL> – Downloads the media from the specified post URL.

Note: Ensure that the user client is part of the chat from where the media is being downloaded. If the user client is not part of the chat, the bot will not be able to download the file.

Author

Note: If you found this repo helpful, please fork and star it. Also, feel free to share with proper credit!

About

Restricted Content Downloader: An advanced Telegram bot script to download restricted content such as photos, videos, audio files, or documents from Telegram private chats or channels. This bot can also copy text messages from Telegram posts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages