Export Telegram chats from Telegram Desktop
Short answer: Telegram Desktop can write an offline copy of the account's data as JSON or HTML. The path Telegram prints is Settings > Advanced > Export Telegram data. That folder is a copy you can open later. It is not a button that brings a deleted account back.
The click path Telegram documents
The page Telegram Data Export Schema, fetched 22 October 2026, says Telegram lets you export data connected to your account so it is available offline, in JSON or in human-readable HTML. The instruction is to install Telegram Desktop, then click Settings > Advanced > Export Telegram data.
A full export is laid out as a folder. result.json is the index. Under chats/ each chat can have contacts, photos, video files, round videos, stickers, voice messages and other files. There is also lists/other_data.json, a stories/ folder and profile_pictures/. Media paths inside result.json are relative, for example chats/chat_01/photos/photo_2@29-10-2021_09-30-00.jpg. The date in that example is Telegram's own example, not a date from this site.
Open the HTML copy by opening export_results.html in a browser. If you exported one chat, the HTML file is messages.html instead, and result.json is a single chat object rather than the whole account.
What the takeout API says you can choose
The takeout API is the mechanism behind an export. account.initTakeoutSession takes flags for exactly the data the user chose: contacts, messages from private chats with users and bots, messages from basic groups, messages from supergroups, messages from channels, and files with an optional maximum size. The session finishes with account.finishTakeoutSession. This page does not add a checkbox the API page does not list.
What the copy is not
The FAQ says deleting an account flushes that account's messages, groups and contacts from Telegram's system. People you wrote to still have their copy of what you sent them. Signing up again with the number creates a new user, without the old history, contacts or groups. An export folder on your disk does not contradict that sentence. Keep the folder if you want your own copy. Do not expect it to resurrect the account.
Secret chats are a different store. The FAQ says they are device-specific and are not part of the Telegram cloud, and that logging out loses them. The export page does not say it includes them. This article does not say it does.
Saved Messages is a cloud chat with yourself, covered in Saved Messages. It is not a substitute for the Desktop export. TGDesk is not an export tool. It keeps sessions on the computer for accounts you add. It does not write Telegram's result.json.
Sources
Last checked 2026-10-22. Telegram Data Export Schema. Takeout API. Telegram Desktop. FAQ: deleting an account. FAQ: secret chats.
FAQ
Where is the export?
The schema page says to install Telegram Desktop and click Settings, Advanced, Export Telegram data.
What files do I get?
A full export has result.json plus folders for chats, media, stories and profile pictures. HTML opens as export_results.html. A single chat's HTML file is messages.html.
Does this restore a deleted account?
No. The FAQ says deleting an account removes its messages and contacts, and signing up again creates a new user without the old history. The export is an offline copy.
Are secret chats in the cloud export?
The FAQ says secret chats are device-specific and are not part of the Telegram cloud. The export page documents data connected to the account. This page does not claim secret chats are in the folder.
Free 3-day trial: open @tgdesk_app_bot and send /trial. Once per Telegram user, Personal-tier capability, 1 device.
Unsigned build. Windows SmartScreen can warn you: choose More info, then Run anyway. SHA256 · README. License: open t.me/tgdesk_app_bot and send /trial, /buy, or /mykey, then choose Activate in the app. The app checks the key at pay.tgdesk.app. Personal: 59.9 USDT or 3000 Stars, 90 days, 2 devices. Team: 143.76 USDT or 7200 Stars, 90 days, 5 devices. Team is a license for 5 devices, not shared agent seats, conversation assignment or a ticketing system.
Where to paste the key: Activate and bind this computer.