Documentation

Telegram Media Downloader is a self-hosted web app that downloads and backs up media from Telegram channels, groups and private chats using your own account. Version 3.x is a single Go program, tgdl-server, with the dashboard built in. Run it with Docker or as a native binary on Linux, Windows or macOS.

Get started

Page Read it when you want to
Install and deploy Install with Docker Compose, a release binary or a git checkout; set the first password; add a reverse proxy; update
Upgrading from 2.x Move an existing 2.x install to 3.x, see what changed and what came back, roll back
Configuration Look up dashboard settings, environment variables and the data folder layout
Troubleshooting Fix a problem with start-up, sign-in, Telegram accounts, downloads or updates

Features

Page Covers
Features Everything 3.x does, and what is still missing
Backup Local, S3, SFTP, FTP/FTPS, Google Drive and Dropbox backups, encryption, whole-app backup and restore in the dashboard, offline restore
Cluster mode Pair several instances into one library
Forward queue Auto-forward jobs: states, retries, FloodWait, restart recovery, uncertain deliveries
Small hosts Running on a Raspberry Pi and building the image with little memory
AI: faces, NSFW and previews Seekbar previews, the tgdl-faces and tgdl-nsfw sidecars
API reference HTTP and WebSocket endpoints

Under the hood

Page Covers
Architecture How the Go server, queue, storage and dashboard fit together
Developer notes Engineering notes on each subsystem of the Go server
Contributing Build, test and send a pull request
Security policy Report a vulnerability
Changelog Release notes

AI assistants can use llms.txt, a short curated index of these pages.