tdl
Go command-line toolkit that downloads files from Telegram chats, including protected ones, and exports messages and members to JSON.
CLI (Windows, macOS, Linux) · Open source · Data capturing · github.com
- Takes
- URL · Username
- Pricing
- Free, open source
- Footprint
- Passive · no contact with target
- Account
- Needed for full results
- API
- No public API
- Last verified
- Dec 3, 2026
Go command-line toolkit that downloads files from Telegram chats, including protected ones, and exports messages and members to JSON. It takes URL and username. Read the cons before you build a workflow on it.
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.
- +One binary for Windows, macOS and Linux
- +Very fast parallel downloads
- +Detailed documentation and regular releases
- −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
- 01Use it when you need to save all media posted in a channel or group as evidence.
- 02Use it when you need a JSON list of a chat's members or media posts to analyse in another tool.
Next steps from this result
Suggested from the inputs tdl takes- Found a resultConfirm it with a second, independent source before you record it
- Found a new identifierPivot on it only if your scope covers the new targetDepends
Quick start
Docs (opens in new tab)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
Technical details
Listing verified by an editor on Dec 3, 2026- API
- No public API
- Account
- Needed for full results
- Footprint
- Passive · no contact with target
- Pricing
- Free, open source
- Platforms
- CLI (Windows, macOS, Linux)
- Repository
- iyear/tdl 8,347 stars
- Language
- Go
- Licence
- AGPL-3.0
- Last commit
- Nov 2026
- Listed
- Dec 3
Reviews
No reviews yet
Written by signed-in members. Each review appears here after an editor has read it.
Used tdl? Sign in to say what you used it for and how it went.
Sign in to reviewDiscussion
Tips, questions and updates about tdl from the community.
No posts about tdl yet. Ask a question or share how you use it.
Alternatives to tdl
Listed tools that take the same inputs, closest match first.
- Telegram Media DownloaderOpen source · Passive · accountWhat it does
Python script that downloads every photo, video, voice note and document from chats or channels you belong to, picking up where it stopped.
UsernameURLNo ratings yetVerified yesterday - tg-archiveOpen source · Passive · accountWhat it does
Syncs a Telegram group's messages and media into SQLite and builds a static, browsable website archive of the chat.
UsernameURLNo ratings yetVerified yesterday - Telegram ArchiveOpen source · Passive · accountWhat it does
Self-hosted, scheduled backup of your Telegram account that keeps edits and deleted messages, with a searchable local web viewer.
UsernameURLNo ratings yetVerified yesterday