How to export a Telegram chat and keep a copy of the conversation

Updated

In short

You export a Telegram chat in Telegram Desktop on a computer: open the chat's menu, choose Export chat history, pick the media types and a format (HTML or JSON). The file only holds what's in the chat at the moment you export, so deleted messages aren't in it. The Spy Buddy mini app exports what the bot saved into one HTML file, with deleted and edited messages marked.

On this page 8 sections

Step by step

  1. Open Telegram Desktop

    The export tool lives in the desktop app. Telegram recommends updating it to the latest version first.

  2. Open the chat menu

    Go to the chat, click the three dots at the top and choose Export chat history.

  3. Choose what to include

    Tick the media types: photos, videos, voice messages, video messages, stickers, GIFs, files. You can also set a file size limit and a date range.

  4. Pick a format and folder

    Human-readable HTML opens in a browser; machine-readable JSON is for programs. You can choose both.

  5. Run the export

    Wait for it to finish and open the folder: it holds the chat file and folders with the media.

How do you export a Telegram chat?

With Telegram Desktop, the computer app. The built-in export arrived in 2018, and Telegram’s blog post describes it: you can save conversations to your disk with photos and other media, as JSON or formatted HTML. A single chat is exported from the “…” menu inside that chat, and everything at once through Export Telegram data in the settings.

The steps block on this page walks through it. The export window lets you choose:

  • which media to include: photos, videos, voice messages, video messages, stickers, GIFs, files;
  • a size limit, so you don’t pull down gigabytes of video;
  • the format: human-readable HTML, machine-readable JSON, or both;
  • the download folder and a date range.

The HTML version opens in any browser and reads like the chat feed. JSON is handy if you want to analyse the messages or move them into another program.

Can you export a chat from your phone?

Not with the official export: Telegram describes it only for Telegram Desktop. Without a computer, you’re left with forwarding important messages to Saved Messages and taking screenshots. Spy Buddy’s mini app also exports from a phone, but it works differently (more on that below).

Does the export include deleted messages?

No. An export saves what’s in the chat when you run it. If the other person deleted a message for both of you, it’s gone from Telegram’s servers for good, as Telegram’s privacy policy puts it. There’s nothing left to export.

That leads to a few limits:

  • An export is a snapshot. Anything deleted after you export stays in your file; anything deleted before it never gets there. To keep the copy current, you export again.
  • Edited messages come out as they read now. Telegram keeps no edit history in private chats.
  • View-once photos and videos disappear after viewing and don’t end up in the export.
  • In chats where one of you turned on Disable Sharing (a Premium feature), Telegram restricts forwarding and saving media. Telegram doesn’t say directly how that affects exports.

What can and can’t be brought back after deletion is covered in recovering deleted Telegram messages.

How is Spy Buddy’s export different?

It exports what the bot saved, not what’s in the chat right now, and that includes deleted and edited messages. In the Spy Buddy mini app you can export a conversation into a single HTML file. It looks much like a Telegram Desktop export, with a few additions:

  • deleted messages are marked as deleted;
  • edited messages are marked as edited, with the earlier text shown next to them;
  • the media files themselves aren’t included, only a marker showing there was an attachment.

The limit matters just as much: the bot sees only the private chats you connected it to, and only from the moment you connected it. Messages from before that, groups and channels won’t be in the file. How the bot keeps deleted messages is explained in how to see deleted messages on Telegram, and edits in edited messages.

Telegram Desktop export Spy Buddy export
Where Desktop app Mini app, works on a phone
Format HTML, JSON or both One HTML file
Media Yes, by type, with a size limit No, only attachment markers
Deleted messages No Yes, marked as deleted
Edited messages Current version only Marked as edited, with the earlier text
Time range Full chat history or chosen dates From when you connected the bot, within the storage period
Groups and channels Yes No, private chats only

The two work best together. Telegram Desktop gives you a full copy with media as of today, and the bot adds what later disappears from the chat.

What Spy Buddy’s export can’t do

  • Work without access: export is available during the free trial and with a subscription.
  • Bring back anything deleted before you connected the bot.
  • Export groups, channels or secret chats.
  • Include photos, videos or voice messages: the file has text and attachment markers only.
  • Keep things forever. As of December 2026, regular copies are stored for 180 days, and deleted and edited messages for 365 days from the moment they were deleted or edited.

Copies sit encrypted on the bot’s server, and to be straight with you, the server admin can technically decrypt them. Details on is it safe.

Which one should you use?

If you want a full copy of a conversation with photos and videos, say before switching phones or for an archive, use Telegram Desktop. If you want to see what was deleted and changed in a conversation and have it all in one file, use Spy Buddy’s export. You can try it if you open the bot in Telegram and connect it to the chats you care about.

Questions and answers

Can I export a Telegram chat on my phone?

Telegram describes chat export only for Telegram Desktop, so you'll need a computer. The Spy Buddy mini app can export from a phone, but its file contains only what the bot saved.

Does a Telegram export include deleted messages?

No. A Telegram Desktop export saves what's in the chat at the moment you export. Messages deleted for both people are gone from Telegram for good, so they can't be in the file.

What format does a Telegram chat export use?

Telegram Desktop offers human-readable HTML, machine-readable JSON, or both. Spy Buddy exports a single HTML file.

Are photos and videos included in the export?

In Telegram Desktop, yes: you tick photos, videos, voice messages, video messages, stickers, GIFs and files, and set a size limit. Spy Buddy's export has no media files.

Does the export show that a message was edited?

A Telegram Desktop export has the current version of each message, since Telegram keeps no edit history in private chats. Spy Buddy's export marks edited messages and shows the earlier text next to them.

Can I export a group or a channel?

Telegram Desktop can export any chat, groups and channels included. Spy Buddy only works with the private chats it's connected to.