# 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.

Source: https://osinttools.io/tools/ta-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:** Go CLI and terminal UI
- **Website:** https://github.com/mo1ein/TelegramArchive
- **GitHub:** mo1ein/TelegramArchive, 78 stars · Go · MIT · last commit 2026-11-19
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

ta archives Telegram chats, groups and public or private channels that your account can access, including channels with restricted content, as JSON in Telegram Desktop's export format, as offline HTML with local media, or both. It reuses the transfer and session code of tdl, resumes interrupted runs and adds only new messages on later runs, with filters for file type, date range and file size.

It can run as an interactive terminal workspace or as plain commands, keep several logged-in accounts apart, and schedule recurring syncs through cron. For investigators it is a way to keep regularly refreshed, offline copies of the channels a research account follows.

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

- JSON and offline HTML archives
- Restricted-content channel backups
- Filters by file type, date and size
- Incremental sync and resume
- Cron schedules per account
- Interactive terminal workspace

## Pros

- Output matches Telegram Desktop's export format
- Single Go binary
- Several accounts with separate schedules

## Cons

- Works through your own Telegram account; use a research account
- Needs Go 1.26 or newer to install
- Small project maintained by one developer

## When to use it

- Use it when you need scheduled offline copies of the channels a research account has joined.
- Use it when you need a Desktop-format export of a channel that restricts saving content.

## Quick start

Install with Go and archive a chat:

```
go install github.com/mo1ein/TelegramArchive/cmd/ta@latest
ta login -T qr
ta archive --chat "channel_username" --media all --format both
```

## 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)
- [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)
- [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 ta (Telegram Archive) in one table: https://osinttools.io/tools/ta-telegram-archive/alternatives/

## Change history

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

Feed of changes to ta (Telegram Archive): https://osinttools.io/tools/changes/feed.xml?tool=ta-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/
