- Login to https://web.telegram.org
- Copy-paste contents of
telegram-scripts.js
into JS console - Run
showContacts()
to get the list of contacts with ids - Run
saveChat(userId)
whereuserId
is the id from step 3
Process can take a while, check console for progress. Occasionall FLOOD_WAIT
errors are expected. Once done, browser will download the JSON file.
Proposed solution requires no dependencies and works with any browser/OS.
telegram-history-dump has a dependency on telegram-cli which failed to work for me.
I just stumbled upon your reply and got blown away by your flames towards Telegram. You clearly are a WhatsApp user. If you have a new phone just login to Telegram, all the data is in the cloud. No need to run a single script. If you have a new number just follow these steps https://telegram.org/faq#q-how-do-i-change-my-phone-number