Tg Archive

screenshot of Tg Archive

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

Overview:

favicontg-archive is a tool that allows users to export Telegram group chats into static websites, preserving the chat history like mailing list archives. It utilizes the Telethon Telegram API client to sync messages from a group to a local SQLite database, allowing users to download new messages, avatars, media, and more. With a single file Jinja HTML template, users can generate a static archive website that can be published anywhere. favicontg-archive also offers additional features such as RSS/Atom feed of recent messages and deep linking across pages, making it a versatile tool for archiving Telegram group chats.

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

Summary:

favicontg-archive is a powerful tool that allows users to export Telegram group chats into static websites, preserving the chat history like mailing list archives. With features such as periodic syncing of messages, local avatars and media downloads, poll result rendering, and deep linking across pages, users can create comprehensive and customizable archive websites. The ease of installation and customization, along with the option to set up a cron job for regular syncing, make favicontg-archive a valuable tool for maintaining and sharing Telegram group chat archives.