Skip to content
OSINTtools.io

tg-archive

Verified yesterday

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
Summary

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.

Pros
  • +Output is plain files you can keep, hash or host anywhere
  • +Resumable: a sync can be stopped and continued
  • +Single editable HTML template
Cons
  • −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

  1. 01Use it when you need a browsable offline copy of a group you have joined, kept up to date on a schedule.
  2. 02Use it when you want a group's history preserved as static pages rather than inside the Telegram app.
Key featuresIncremental sync of group messages to SQLiteDownloads avatars and mediaStatic HTML archive with date indexesReply links across pagesPoll results renderedRSS / Atom feed of recent messages

Next steps from this result

Suggested from the inputs tg-archive 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 target
    Depends

Quick start

Install and build an archive
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 review

Discussion

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.

tg-archiveOpen source · verified yesterday
Visit github.com (opens in new tab)