Skip to content
maxaltproPublic

About

Export Telegram chats in Telegram Desktop's JSON format and convert them to self-contained PDFs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

tg-export

Command-line tool that exports Telegram chats in the exact format of Telegram Desktop's JSON export, and converts exports into self-contained PDFs (media embedded as attachments).

  • Talks MTProto directly (there is no OAuth for user accounts); all traffic is encrypted, with Perfect Forward Secrecy enabled.
  • Handles long chats like Telegram Desktop does: takeout session, ascending slices of 100 messages, streaming output, and resume after an interruption.
  • A single static Go binary with fonts embedded. Plain, pipe-friendly CLI.
make                                   # builds bin/tg-export (Go 1.25+)
tg-export login                        # API ID/hash from my.telegram.org/apps
tg-export chats
tg-export export CHAT -o ~/backup --pdf

Details: docs/guide.md. Contributor and agent notes: AGENTS.md.

MIT © 2026 Maxim Altoukhov. Bundled Noto fonts are under the SIL OFL 1.1.

About

Export Telegram chats in Telegram Desktop's JSON format and convert them to self-contained PDFs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages