Exporting a chat from Telegram
How to save a Telegram chat with Telegram Desktop as machine-readable JSON, with photos and voice messages, and load it into Chatbook.
Chatbook reads Telegram's own export file. Telegram makes it only in the computer app, Telegram Desktop (Windows, macOS, Linux) — the phone apps have no export. The export stays on your computer: Chatbook opens it in your browser.
The same steps are on the site: /chatbook → How to export, or the button How do I export my chat? above the
drop box of the maker, which opens a picture of the screens with the place to click marked.
Before you start
- Install Telegram Desktop from
desktop.telegram.org. - Sign in: the app shows a QR code, scan it with Telegram on your phone.
- Make sure there is room on the disk: photos and voice messages of a long chat may take a few gigabytes.
Export the chat
- Open the chat in Telegram Desktop.
- Click ⋮ at the top right → Export chat history.
- Tick Photos and Voice messages. Tick Video messages too if you like. If the chat has large files, set the size limit higher.
- Under Format choose Machine-readable JSON. This matters: the HTML format Telegram offers by default cannot be read.
- If you want only part of the chat, set the period here. You can also choose the dates later in Chatbook.
- Click Export and wait until Telegram says it is done.
You get a folder. In it are the file result.json (the messages) and folders with the photos and the voice messages.
Load it into Chatbook
- Open
/chatbookand press Make a book. - Choose the style of the book (you can change it later).
- Load the export in one of these ways:
- drag the whole folder onto the box Drop the export here;
- press Choose a Telegram folder and pick the folder;
- make a ZIP of the folder and press Choose a file.
- Chatbook says Opening the export… and then lays out the book.
Only result.json, without the folder? That works too — the book will have no photos and no voice messages, only
the text.
Several chats in one export
Telegram can also export the data of the whole account. If the file holds several chats, Chatbook takes the chats that have messages, the biggest first, and shows a Chat list in the box Your book: choose the one you want.
If something goes wrong
- "This does not look like a Telegram or WhatsApp export." The file is not Telegram's JSON — most often the export was made in HTML. Export again with Machine-readable JSON.
- "No messages found in this export." The chat or the period you chose is empty.
- "The file could not be read." The ZIP may be damaged or unfinished. Wait until Telegram has finished, then try again or export once more.
- The photos are missing. The photos were not ticked in step 3, or only
result.jsonwas loaded without its folder.
Next: Making the book. For WhatsApp, see Exporting from WhatsApp.