Download disappearing Telegram photos and videos before they vanish.
GhostGram is a powerful Python CLI tool built on Telethon that allows you to browse, preview, and download self-destructing or restricted Telegram media — including photos, videos, and documents — from your personal chats.
- 🔥 Detects and downloads TTL (self-destructing) media messages.
- 📸 Supports photos, videos, audio, and documents.
- 📂 Automatically saves media in the
downloads/directory. - 📤 Optional auto-forwarding to your private channel for safe archiving.
- 🧭 Built-in interactive CLI to browse chats, preview media, and select downloads.
- 🧱 Clean terminal UI with colored output and progress logs.
git clone https://github.com/ayxkaddd/GhostGram.git
cd GhostGrampip install -r requirements.txtInstall ffprobe from ffbinaries.com for your OS.
Put your Telegram API credentials (from my.telegram.org) in .env:
API_ID=123456
API_HASH=your_api_hash_here
In .env:
FORWARD_CHANNEL_ID=1234567890
python3 ghostgram.pyThen:
- Select a chat from your contacts list.
- Browse media files (including TTL content 🔥).
- Choose which ones to download or forward to a channel.
This tool is for personal archival and educational use only. Downloading or redistributing private, ephemeral, or copyrighted content may violate Telegram’s Terms of Service.
Use responsibly.