Save-Restricted-Content-Bot-v2  by devgaganin

Telegram bot for extracting restricted content

Created 1 year ago
376 stars

Top 75.5% on SourcePulse

GitHubView on GitHub
Project Summary

This Telegram bot, built with Pyrogram V2, extracts and forwards content from public and private channels/groups, including restricted messages and files up to 4GB. It targets users needing to save or redistribute content from Telegram, offering features like custom thumbnails, filename/caption manipulation, and YouTube/social media downloading.

How It Works

The bot leverages Pyrogram V2 for enhanced stability and session-based login. It supports direct content extraction via message links or by processing forwarded messages. For large file uploads (up to 4GB), it requires a premium account session string. It integrates with ytdlp for downloading from various sites and includes optional monetization via link shorteners.

Quick Start & Requirements

  • Install/Run: Deploy on VPS (requires ffmpeg, git, python3-pip), Heroku, Render, or Koyeb.
  • Prerequisites: API_ID, API_HASH, BOT_TOKEN, OWNER_ID, CHANNEL_ID (for forced subscription), LOG_GROUP, MONGO_DB (recommended). Optional: STRING for 4GB uploads, YT_COOKIES, INSTA_COOKIES.
  • Setup: Requires environment variable configuration.
  • Docs: Deployment Guide

Highlighted Details

  • Supports 4GB file uploads via premium session string.
  • Extracts content from public/private channels, groups, and even other bots.
  • Includes YouTube, Instagram, Facebook, and 100+ other site downloading via ytdlp.
  • Offers optional link monetization with custom shorteners.
  • Supports uploading directly to topics within groups.

Maintenance & Community

  • Actively updated with new features and bug fixes (e.g., topic support, login improvements).
  • Mentions "TEAM SPY" and "Mautrix Bridge" for fast uploader connectivity.
  • No explicit community links (Discord/Slack) are provided in the README.

Licensing & Compatibility

  • The README does not explicitly state a license. It encourages forking and editing.
  • Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The bot requires significant configuration of Telegram API credentials and potentially MongoDB. While it supports 4GB uploads, this feature is gated behind providing a premium session string. Monetization features require additional setup with third-party link shortener services.

Health Check
Last Commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
2
Star History
14 stars in the last 30 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Author of Hugging Face Diffusers; Research Engineer at Mistral) and Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera).

client-python by mistralai

0.6%
648
Python SDK for Mistral AI platform
Created 1 year ago
Updated 2 weeks ago
Feedback? Help us improve.