# tg-archive

Tool that exports Telegram group chats into a static website archive, synced into a local SQLite database.


Source: https://findsoftware.frbit.cloud/tg-archive/
Last reviewed: 2026-10-23
Updated: 2026-10-25
Listed since: 2026-10-23

## Record

### Links

- repository: https://github.com/knadh/tg-archive

### Identity

- status: discontinued
- maintainer: Kailash Nadh
- maintainerType: individual
- parent: unknown
- firstRelease: 2021
- hqCountry: unknown

### Kind

- category: unknown
- hosting: static
- language: python
- runtime: python
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: unknown
- databases: sqlite
- adminUi: unknown
- headlessApi: unknown
- templating: jinja2
- i18n: unknown

### Rendering and deploy

- runsAs: static, scheduled
- renderingModes: static
- installMethod: pip

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-01-26

### Adoption

- githubStargazers: 1173
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 22
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: 191
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1
- dependentPackages: unknown

### Sources

- status: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- urls: https://api.github.com/repos/knadh/tg-archive (read 2026-10-23)
- maintainer: https://github.com/knadh/tg-archive/blob/master/LICENSE (read 2026-10-23)
- language: https://api.github.com/repos/knadh/tg-archive (read 2026-10-23)
- runtime: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- templating: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- installMethod: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- renderingModes: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- runsAs: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- runsAs: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- databases: https://github.com/knadh/tg-archive/blob/master/README.md (read 2026-10-23)
- license: https://api.github.com/repos/knadh/tg-archive (read 2026-10-23)
- licenseModel: https://github.com/knadh/tg-archive/blob/master/LICENSE (read 2026-10-23)
- firstRelease: https://pypi.org/pypi/tg-archive/json (read 2026-10-23)
- currentMajor: https://api.github.com/repos/knadh/tg-archive/releases (read 2026-10-23)
- latestReleaseDate: https://pypi.org/pypi/tg-archive/json (read 2026-10-23)
- githubStargazers: https://api.github.com/repos/knadh/tg-archive (read 2026-10-23)
- contributors: https://api.github.com/repos/knadh/tg-archive/contributors (read 2026-10-23)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/tg-archive (read 2026-10-25)
- ecosystemsMonthlyDownloads: https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/tg-archive (read 2026-10-25)

## Notes

tg-archive is a tool that exports Telegram group chats into static websites, preserving chat history like mailing list archives. It uses the Telethon Telegram API client to sync a group's messages into a local SQLite database, then builds a static archive website from a Jinja HTML template. The install step needs Telegram API credentials for a user account, not the Bot API.

## Worth knowing

The README states that the author is no longer maintaining or developing the tool, and that small, clearly documented pull requests can still be reviewed and merged. The README suggests a cron job to sync messages and re-publish the archive periodically.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
