# Telegram Archive

> Self-hosted, scheduled backup of your Telegram account that keeps edits and deleted messages, with a searchable local web viewer.

Source: https://osinttools.io/tools/telegram-archive/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Username, URL
- **Category:** Data capturing
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Self-hosted (Docker, Python)
- **Website:** https://github.com/GeiserX/Telegram-Archive
- **Docs:** https://geiserx.github.io/Telegram-Archive/
- **GitHub:** GeiserX/Telegram-Archive, 263 stars · Python · GPL-3.0 · last commit 2026-12-04
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

Telegram Archive backs up one or more Telegram accounts to a machine you run, in Docker or from pip. It stores messages, media, reactions and every edit with its earlier text in SQLite or PostgreSQL, keeps messages that were later deleted (marked as deleted), and runs a daily full pass to fill in anything the live connection missed. It can also import Telegram Desktop exports.

Its separate web viewer, which never contacts Telegram, shows chats the way the app does with search across all of them, a feed of what was deleted or edited, and earlier profile photos of each chat. For investigators who monitor groups from a research account, that history of edits and deletions is the main reason to use it.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is no public API.

## Features

- Live capture plus a daily catch-up pass
- Keeps edits and deleted messages
- Search across all archived chats
- What changed feed of deletions and edits
- Imports Telegram Desktop exports
- Optional voice-message transcription

## Pros

- Preserves content that later disappears from Telegram
- Data stays on your own disk
- Well documented, with frequent releases

## Cons

- Needs a Telegram api_id and api_hash and a logged-in account (use a research account)
- Backs up the chats that account is in; it does not discover new ones
- Docker or a server is needed for scheduled runs

## When to use it

- Use it when you monitor groups from a research account and need a record of messages that are later edited or deleted.
- Use it when you want one searchable archive across many chats on your own hardware.

## Quick start

Run with Docker Compose (after writing .env with your api_id, api_hash and phone):

```
curl -fsSLO https://raw.githubusercontent.com/GeiserX/Telegram-Archive/main/docker-compose.yml
docker compose run --rm telegram-backup python -m telegram_archive auth
docker compose up -d
```

## Alternatives

- [tdl](https://osinttools.io/tools/tdl/): Go command-line toolkit that downloads files from Telegram chats, including protected ones, and exports messages and members to JSON. (Open source · URL, Username · passive · 8,347 GitHub stars)
- [Telegram Media Downloader](https://osinttools.io/tools/telegram-media-downloader/): Python script that downloads every photo, video, voice note and document from chats or channels you belong to, picking up where it stopped. (Open source · Username, URL · passive · 2,769 GitHub stars)
- [tg-archive](https://osinttools.io/tools/tg-archive/): Syncs a Telegram group's messages and media into SQLite and builds a static, browsable website archive of the chat. (Open source · Username, URL · passive · 1,176 GitHub stars)
- [TgWitness](https://osinttools.io/tools/tgwitness/): Self-hosted Telegram archiver that keeps observed edits and deletions and exports signed, timestamped HTML, JSON and PDF records. (Open source · Username, URL · passive · 246 GitHub stars)
- [ta (Telegram Archive)](https://osinttools.io/tools/ta-telegram-archive/): Go command-line and terminal app that backs up chats, groups and channels to Desktop-style JSON or offline HTML with media. (Open source · Username, URL · passive · 78 GitHub stars)
- [SockPuppet](https://osinttools.io/tools/sockpuppet/): Managed platform that gives investigation teams isolated research environments, virtual phones and managed research personas. (Paid · Username, URL · depends)

All alternatives to Telegram Archive in one table: https://osinttools.io/tools/telegram-archive/alternatives/

## Change history

- 2026-12-03: Listed in the directory.

Feed of changes to Telegram Archive: https://osinttools.io/tools/changes/feed.xml?tool=telegram-archive

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
