{"repo":"knadh/tg-archive","free":true,"listed":false,"github":"https://github.com/knadh/tg-archive","clone":"git clone https://github.com/knadh/tg-archive.git","description":"A tool for exporting Telegram group chats into static websites like mailing list archives.","language":"Python","stars":1163,"topics":["telegram","telegram-api","static-site","static-site-generator","exporter","telegram-export"],"license":"MIT","category":"chat-messaging","readme_excerpt":"tg-archive is a tool for exporting Telegram group chats into static websites, preserving chat history like mailing list archives. IMPORTANT: I'm no longer actively maintaining or developing this tool. Can review and merge PRs (as long as they're not massive and are clearly documented). Preview The @fossunited Telegram group archive. How it works tg-archive uses the Telethon Telegram API client to periodically sync messages from a group to a local SQLite database (file), downloading only new messages since the last sync. It then generates a static archive website of messages to be published anywhere. Features - Periodically sync Telegram group messages to a local DB. - Download user avatars locally. - Download and embed media (files, documents, photos). - Renders poll results. - Use emoji alternatives in place of stickers. - Single file Jinja HTML template for generating the static site. - Year / Month / Day indexes with deep linking across pages. - \"In reply to\" on replies with links to parent messages across pages. - RSS / Atom feed of recent messages. Install - Get Telegram API credentials. Normal user account API and not the Bot API. - If this page produces an alert stating only \"ERROR\", disconnect from any proxy/vpn and try again in a different browser. - Install with: uv pip install tg-archive (tested with Python 3.13.2). Usage 1. tg-archive --new --path=mysite (creates a new site. cd into mysite and edit config.yaml ). 1. tg-archive --sync (syncs data into data.sqlite )","default_branch":null,"files":null,"tree":[],"storefront":"/r/knadh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/knadh/tg-archive/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}