tg-archive
Syncs a Telegram group's messages and media into SQLite and builds a static, browsable website archive of the chat.
Python CLI · Open source · Data capturing · github.com
- Takes
- Username · URL
- Pricing
- Free, open source
- Footprint
- Passive · no contact with target
- Account
- Needed for full results
- API
- No public API
- Last verified
- Dec 3, 2026
Syncs a Telegram group's messages and media into SQLite and builds a static, browsable website archive of the chat. It takes username and URL. Read the cons before you build a workflow on it.
What it does
tg-archive is a Python command-line tool that logs in with a Telegram user account through the API, copies a group's messages into a local SQLite file and then renders them as a static website laid out like a mailing-list archive. Later syncs fetch only messages newer than the last run, and it can download avatars, photos, documents and other media and embed them in the pages.
Investigators use it to keep a dated, readable copy of a group they are a member of, with year, month and day indexes, reply links between messages and an RSS feed of recent posts. Its author states it is no longer actively developed, though pull requests are still reviewed.
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.
- +Output is plain files you can keep, hash or host anywhere
- +Resumable: a sync can be stopped and continued
- +Single editable HTML template
- −Needs a Telegram api_id and api_hash and a logged-in account (use a research account)
- −No longer actively developed by its author
- −Long histories and large media can hit Telegram's rate limits
When to use it
- 01Use it when you need a browsable offline copy of a group you have joined, kept up to date on a schedule.
- 02Use it when you want a group's history preserved as static pages rather than inside the Telegram app.
Next steps from this result
Suggested from the inputs tg-archive takes- Found a resultConfirm it with a second, independent source before you record itPassive
- Found a new identifierPivot on it only if your scope covers the new targetDepends
Quick start
uv pip install tg-archive tg-archive --new --path=mysite cd mysite tg-archive --sync tg-archive --build
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
- Python CLI
- Repository
- knadh/tg-archive 1,176 stars
- Language
- Python
- Licence
- MIT
- Last commit
- Mar 2026
- Listed
- Dec 3
Reviews
No reviews yet
Written by signed-in members. Each review appears here after an editor has read it.
Used tg-archive? Sign in to say what you used it for and how it went.
Sign in to reviewDiscussion
Tips, questions and updates about tg-archive from the community.
No posts about tg-archive yet. Ask a question or share how you use it.
Alternatives to tg-archive
Listed tools that take the same inputs, closest match first.
- tdlOpen source · Passive · accountWhat it does
Go command-line toolkit that downloads files from Telegram chats, including protected ones, and exports messages and members to JSON.
URLUsernameNo ratings yetVerified yesterday - 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 - 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