# TgWitness

> Self-hosted Telegram archiver that keeps observed edits and deletions and exports signed, timestamped HTML, JSON and PDF records.

Source: https://osinttools.io/tools/tgwitness/ (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 web app (Linux, macOS, Windows, Docker)
- **Website:** https://phishdestroy.github.io/TgWitness/
- **Docs:** https://github.com/phishdestroy/TgWitness/wiki
- **Source code:** https://github.com/phishdestroy/TgWitness
- **GitHub:** phishdestroy/TgWitness, 246 stars · Python · MIT · last commit 2026-12-01
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

TgWitness runs a local web panel connected to your own Telegram account. It can export chats once in a Telegram-style HTML view with Telegram Desktop-compatible JSON and media, or keep following chosen chats and record new messages, edits and deletion notices as they are observed. Captures go into a signed, hash-linked journal, with optional RFC 3161 and OpenTimestamps timestamps.

Investigators use it to preserve Telegram conversations as evidence that someone else can check: exports include the files, the signatures and a standalone verifier. It also keeps profile and avatar changes of people in the chats and builds case reports from selected messages. It only sees chats the connected account can see, so a dedicated research account is advisable. The project is new, from late 2026.

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

- One-off chat and account exports
- Continuous capture of edits and deletion notices
- Signed, hash-linked evidence journal
- RFC 3161 and OpenTimestamps anchoring
- HTML, JSON and PDF case reports
- Standalone verifier for recipients
- Docker and one-line installers

## Pros

- Exports others can verify independently
- Keeps content that is later edited or deleted
- Self-hosted with no telemetry
- Free and open source

## Cons

- Needs a Telegram account and only sees its chats
- Only captures deletions while it is running
- New project with a fast-changing feature set

## When to use it

- Use it when you need a verifiable archive of a Telegram group or channel for a case file.
- Use it when messages in a chat you follow are being edited or deleted and you need to keep the originals.

## Quick start

Install (Linux / macOS):

```
curl -fsSL https://get.destroy.tools/install.sh | bash
```

## 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)
- [Telegram Archive](https://osinttools.io/tools/telegram-archive/): Self-hosted, scheduled backup of your Telegram account that keeps edits and deleted messages, with a searchable local web viewer. (Open source · Username, URL · passive · 263 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 TgWitness in one table: https://osinttools.io/tools/tgwitness/alternatives/

## Change history

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

Feed of changes to TgWitness: https://osinttools.io/tools/changes/feed.xml?tool=tgwitness

---

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/
