# tdl

> Go command-line toolkit that downloads files from Telegram chats, including protected ones, and exports messages and members to JSON.

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

- **Inputs:** URL, Username
- **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:** CLI (Windows, macOS, Linux)
- **Website:** https://github.com/iyear/tdl
- **Docs:** https://docs.iyear.me/tdl/
- **GitHub:** iyear/tdl, 8,347 stars · Go · AGPL-3.0 · last commit 2026-11-25
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

tdl is a single-binary Telegram toolkit written in Go. It logs in by importing the session of an installed Telegram Desktop client, by QR code or by phone and code, then downloads files from message links or from a chat export, exports a chat's media messages to JSON, exports members, admins and subscribers to JSON, and can also forward and upload files.

For investigations it is a fast way to pull every video, photo and document out of a channel or group, including chats where saving content is restricted, and to get a machine-readable list of a chat's messages and users to work with elsewhere. Some member types, such as banned or kicked users, need admin rights in the chat.

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

- Download from message links or JSON exports
- Downloads from protected chats
- Export media messages to JSON
- Export members, admins and subscribers
- Resumable, multi-threaded transfers
- Login from Telegram Desktop, QR code or phone

## Pros

- One binary for Windows, macOS and Linux
- Very fast parallel downloads
- Detailed documentation and regular releases

## Cons

- Works through your own Telegram account; use a research account
- Message export covers messages with media, not a full text archive
- Forward and upload features are not investigative and touch other chats

## When to use it

- Use it when you need to save all media posted in a channel or group as evidence.
- Use it when you need a JSON list of a chat's members or media posts to analyse in another tool.

## Quick start

Install (macOS / Linux), log in and download:

```
curl -sSL https://docs.iyear.me/tdl/install.sh | sudo bash
tdl login -T qr
tdl chat export -c CHAT
tdl dl -f tdl-export.json
```

## Alternatives

- [Telegram Media Downloader](https://osinttools.io/tools/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. (Open source · Username, URL · passive · 2,769 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 tdl in one table: https://osinttools.io/tools/tdl/alternatives/

## Change history

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

Feed of changes to tdl: https://osinttools.io/tools/changes/feed.xml?tool=tdl

---

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/
