# knadh/tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.

Repository: https://github.com/knadh/tg-archive
Canonical: https://ross.abutalabs.com/products/tg-archive
Language: Python
License: MIT
License Family: permissive
Topics: telegram, telegram-api, static-site, static-site-generator, exporter, telegram-export
Last push: 2026-03-01T05:25:58+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 70, release rhythm 40, longevity 100
- inputs: {"age_days": 1996, "days_push": 185, "days_rel": 489, "gap_med": 0.0, "n_releases_24m": 25}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1165, forks 169 (observed 2026-08-28T04:03:50.063977+00:00)

## What it is
tg-archive is a Python CLI tool that syncs Telegram group chat messages into a local SQLite database and generates a static website archive resembling mailing list archives. It supports media downloads, avatars, reply threading, date-based indexes, and RSS/Atom feeds via a customizable Jinja template.

## Use cases
- export telegram group chat to a static website
- create a public archive of a telegram group like a mailing list
- backup telegram chat history locally
- publish telegram messages as a browsable site with rss feed
- periodically sync telegram group messages with cron
- archive telegram media files and avatars

## When to avoid
- you need real-time chat or two-way interaction - it's export-only
- you want a maintained tool - the author has stopped active development and only reviews PRs
- you need to archive channels or use the Bot API - it requires a user account API
- you expect to export very large groups quickly - Telegram API rate limits apply

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: static-site-generator, web-scraping, cli, templating, search-engine
- domain: messaging-platforms, self-hosted, developer-tools, web-development, documentation
- platform: python, cli, cross-platform, windows
- tags: telegram, chat-archive, mailing-list-archive, sqlite, jinja2, rss-feed, telethon, static-website, linux, macos

## Member repositories
- knadh/tg-archive (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:50.063977+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:29:21.787961+00:00, confidence not recorded.
  - readme: https://github.com/knadh/tg-archive (fetched 2026-08-28T04:03:50.063977+00:00, sha 2136a93d92dc)
  - registry_pypi: https://pypi.org/pypi/tg-archive/json (fetched 2026-08-29T12:35:22.459041+00:00, sha adb51fb70b60)
- Data as of 2026-08-30T08:39:29.467469+00:00.
