bisnuray/RestrictedContentDL
소개
Restricted Content Downloader는 Telegram 비공개 채팅이나 채널에서 사진, 동영상, 오디오 파일, 문서와 같은 제한된 콘텐츠를 다운로드하는 고급 Telegram 봇 스크립트입니다. Telegram 게시물의 텍스트 메시지도 복사할 수 있습니다.
디자인 및 미디어What you can do
- 📥 Download media (photos, videos, audio, documents).
- 🎬 Download restricted stories (photo or video) from any user/channel.
- ✅ Supports downloading from both single media posts and media groups.
- 🔄 Progress bar showing real-time downloading progress.
측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +5
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalRestricted Content Downloader Telegram Bot
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).
- 🎬 Download restricted stories (photo or video) from any user/channel.
- ✅ 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.
- 📤 Auto-forward of downloaded media/text to a defined channel or group.
Requirements
Before you begin, ensure you have met the following requirements:
- Docker and Docker Compose installed on your system
- 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_STRINGOpen @TgDevToolBot. Bot and use 🔐 Pyrogram Session button and then follow all instructions
Note: All dependencies including Python,
kurigram,pyleaves,tgcrypto, andffmpegare automatically installed when you deploy with Docker Compose.
Configuration
Open the
config.envfile in your favorite text editor.Replace the placeholders for
API_ID,API_HASH,SESSION_STRING, andBOT_TOKENwith your actual values:API_ID: Your API ID from my.telegram.org.API_HASH: Your API Hash from my.telegram.org.SESSION_STRING: The session string generated using @TgDevToolBot.BOT_TOKEN: The token you obtained from @BotFather.FORWARD_CHAT_ID: Optional. Set a target channel/group chat ID (example:-1001234567890) to automatically copy downloaded content there. Leave empty to disable.
Optional performance settings (add to
config.py):MAX_CONCURRENT_DOWNLOADS: Number of simultaneous downloads (default: 3)BATCH_SIZE: Number of posts to process in parallel during batch downloads (default: 10)FLOOD_WAIT_DELAY: Delay in seconds between batch groups to avoid flood limits (default: 3)
Deploy the Bot
Clone the repository:
git clone https://github.com/bisnuray/RestrictedContentDL cd RestrictedContentDLStart the bot:
docker compose up --build --remove-orphans
The bot will run in a containerized environment with all dependencies (Python, libraries, FFmpeg) automatically installed and managed.
To stop the bot:
docker compose down
Usage
/start– Welcomes you and gives a brief introduction./help– Shows detailed instructions and examples./dl <post_URL>or simply paste a Telegram post link – Fetch photos, videos, audio, or documents from that post./bdl <start_link> <end_link>– Batch-download a range of posts in one go.💡 Example:
/bdl https://t.me/mychannel/100 https://t.me/mychannel/120/dls <story_URL>or simply paste a Telegram story link – Download a restricted story (photo or video).💡 Example:
/dls https://t.me/username/s/12/bdls <start_link> <end_link>– Batch-download a range of stories from the same user/channel.💡 Example:
/bdls https://t.me/username/s/10 https://t.me/username/s/25/killall– Cancel any pending downloads if the bot hangs./logs– Download the bot’s logs file./cleanup– Remove temporary downloaded files from the server./stats– View current status (uptime, disk, memory, network, CPU, etc.).
Note: Make sure that your user session is a member of the source chat or channel before downloading. For story downloads, the user session must be able to view the story (e.g., follow the user / be in the channel). Stories are only visible for 24h unless pinned.
Author
- Name: Bisnu Ray
- Telegram: @itsSmartDev
Note: If you found this repo helpful, please fork and star it. Also, feel free to share with proper credit!
관련 프로젝트 살펴보기
불러오는 중…