How to use
- Login to https://web.telegram.org
- Copy-paste contents of
telegram-scripts.jsinto JS console
showContacts()to get the list of contacts with ids
userIdis 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 found this while searching a way to transfer my Telegram data from my old to my new phone.
But after having read the script I think there's no way to import the data on my new phone, is there?
The official Telegram docs are not promising either:
2018 and they suggest to 'backup' by creating a PDF? That's pathetic!!
No suprise Telegram has no chance to push whatsapp away.
Anyway in the course of trying the script I added a function to export all chats with one command instead of calling
saveChatover and over.
In case someone needs it just add the following to the end of the script