tg-archive
Tool that exports Telegram group chats into a static website archive, synced into a local SQLite database.
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.
Identity
- Status
- Discontinued1
- Maintainer
- Kailash Nadh3
- Maintained by
- Individual
- First release
- 20214
Rendering and deploy
- Runs as
- Static files, Scheduled1
- Rendering
- Static output1
- Install with
- pip1
Releases
Adoption
Sources
- 2026-10-23: Status, Runtime, Templating, Install with, Rendering, Runs as, Databases
github.com/knadh/tg-archive/blob/master/README.md - 2026-10-23: links, Written in, License, GitHub stars
api.github.com/repos/knadh/tg-archive - 2026-10-23: Maintainer, License model
github.com/knadh/tg-archive/blob/master/LICENSE - 2026-10-23: First release, Last release
pypi.org/pypi/tg-archive/json - 2026-10-23: Current major version
api.github.com/repos/knadh/tg-archive/releases - 2026-10-23: Contributors
api.github.com/repos/knadh/tg-archive/contributors - 2026-10-25: Dependent repositories, Downloads a month
packages.ecosyste.ms/api/v1/registries/pypi.org/packages/tg-archive