# Telegram Media Downloader

> Python script that downloads every photo, video, voice note and document from chats or channels you belong to, picking up where it stopped.

Source: https://osinttools.io/tools/telegram-media-downloader/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Username, URL
- **Category:** Data capturing
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Python CLI · optional local web UI
- **Website:** https://github.com/Dineshkarthik/telegram_media_downloader
- **GitHub:** Dineshkarthik/telegram_media_downloader, 2,769 stars · Python · MIT · last commit 2026-02-24
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

Telegram Media Downloader logs in with your Telegram account through the API (Telethon since version 3) and saves the media from one or more chats or channels you are part of, filtered by media type, file format and start date. It records the last message read for each chat in its config file, so later runs fetch only new files, and keeps a list of failed downloads to retry.

Investigators use it to collect the audio, documents, photos and videos posted in a channel into folders sorted by chat and media type. Newer versions add parallel downloads across chats, pacing and random delays to avoid Telegram limits, and an optional local web interface for setting it up.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is no public API.

## Features

- Downloads audio, documents, photos, videos, video notes and voice
- Several chats in one run, optionally in parallel
- Per-chat filters for type, format and date
- Remembers the last downloaded message
- Rate limiting and download delays
- Optional web UI

## Pros

- Simple YAML configuration
- Resumes without downloading the same file twice
- Tested and actively released

## Cons

- Needs a Telegram api_id and api_hash and a logged-in account (use a research account)
- Only chats the account is a member of
- Saves media only, not message text

## When to use it

- Use it when you need to preserve all media from a channel or group before it is deleted.
- Use it when you want to collect files from several chats on a schedule without re-downloading old ones.

## Quick start

Run from source (Python 3.8+):

```
git clone https://github.com/Dineshkarthik/telegram_media_downloader.git
cd telegram_media_downloader
pip3 install -r requirements.txt
cp config.yaml.example config.yaml
python3 media_downloader.py
```

## Alternatives

- [tdl](https://osinttools.io/tools/tdl/): Go command-line toolkit that downloads files from Telegram chats, including protected ones, and exports messages and members to JSON. (Open source · URL, Username · passive · 8,347 GitHub stars)
- [tg-archive](https://osinttools.io/tools/tg-archive/): Syncs a Telegram group's messages and media into SQLite and builds a static, browsable website archive of the chat. (Open source · Username, URL · passive · 1,176 GitHub stars)
- [Telegram Archive](https://osinttools.io/tools/telegram-archive/): Self-hosted, scheduled backup of your Telegram account that keeps edits and deleted messages, with a searchable local web viewer. (Open source · Username, URL · passive · 263 GitHub stars)
- [TgWitness](https://osinttools.io/tools/tgwitness/): Self-hosted Telegram archiver that keeps observed edits and deletions and exports signed, timestamped HTML, JSON and PDF records. (Open source · Username, URL · passive · 246 GitHub stars)
- [ta (Telegram Archive)](https://osinttools.io/tools/ta-telegram-archive/): Go command-line and terminal app that backs up chats, groups and channels to Desktop-style JSON or offline HTML with media. (Open source · Username, URL · passive · 78 GitHub stars)
- [SockPuppet](https://osinttools.io/tools/sockpuppet/): Managed platform that gives investigation teams isolated research environments, virtual phones and managed research personas. (Paid · Username, URL · depends)

All alternatives to Telegram Media Downloader in one table: https://osinttools.io/tools/telegram-media-downloader/alternatives/

## Change history

- 2026-12-03: Listed in the directory.

Feed of changes to Telegram Media Downloader: https://osinttools.io/tools/changes/feed.xml?tool=telegram-media-downloader

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
