- Login to https://web.telegram.org
- Copy-paste contents of
telegram-scripts.js
into JS console - Run
showContacts()
orshowDialogs()
to get the list of contacts with ids or the 20 last conversations in the same order of the client view - Run
saveChat(userId)
whereuserId
is the id from step 3 (inside the [] )
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.
This allows to export group data via
showConversations()
, but the resulting JSON doesn't include users' names.