Export a chat and its media from Telegram Desktop
A SaveContentMe guide · Updated
When to export
Export saves a conversation to disk: messages as human-readable HTML for a browser or as JSON for scripts, and media as separate files. It's useful for keeping a work chat with a client, pulling all your clips out of Saved Messages, or saving a copy before you delete a chat. The tool lives in Telegram Desktop for Windows, macOS and Linux.
Export only what you're entitled to keep. A group chat contains other people's messages and photos, so keep the archive to yourself and don't publish it. In groups and channels where the owner turned on Restrict Saving Content, the export option isn't available: that's the owner's decision, and there's no need to work around it.
Exporting one chat
Open the chat in Telegram Desktop, click ⋮ in the top-right corner and choose Export chat history. Tick the media types you want: Photos, Videos, Voice messages, Video messages, Stickers, GIFs, Files. Below, set the size limit, the format, the download path and the date range, then click Export.
Say you want your October videos out of Saved Messages. Open Saved Messages, choose Export chat history, leave only Videos ticked, push the size limit to the maximum, choose Human-readable HTML and set the dates from October 1 to October 31. Point the download path at an external drive if your system disk is short on space.
Files larger than the size limit are left out, so give videos plenty of headroom. The export runs in the background: you can close the window, but as Telegram itself warns, don't quit the app until it finishes. At the end, it shows how many files were saved and their total size.
Exporting your whole account
For a full archive, open Settings > Advanced and choose Export Telegram data. You can include account information, contacts and chat types: personal chats, bot chats, private and public groups, and private and public channels. Groups have an Only my messages checkbox, and media types and format work the same way as for a single chat.
Sometimes Telegram delays the download for several hours for security reasons: it notifies all your devices about the request, giving you time to react if it wasn't you, and asks you to repeat it later from the same device. That's expected; come back at the time it gives and start the export again.
HTML, JSON and checking the result
Open the HTML in any browser: messages look much like the chat, and photos and videos open from the export folder. JSON is a structured file that's convenient for searching and for scripts. If you're not sure, choose Both; it takes a little more space and covers either use.
After the export, open the HTML, scroll to the start of the period and play a few videos. Compare the number of files with what Telegram reported at the end. Then copy the folder to a second drive: an export is an archive too, and the same rules apply as for an archive of your own videos.
Remember that an export is a readable copy of your conversations, with no Telegram password or login standing in front of it. Keep it in an encrypted folder or on an encrypted drive, and don't send the whole thing through third-party services. When you no longer need it, delete it, including from the trash.