Telegram Export and Converter Tool
A Python script to convert Telegram .html
chat export files to easier to process .csv
.
Made and tested with Python 3.8.0
As of June 5th 2020, Telegram Desktop v2.1.10 now allows individual chats to be exported as JSON as well.
Usage
- In the Telegram Desktop client, open the chat you want to export
- In the upper right, go to
Options > Export chat history
- Unselect all boxes, as photos and other media aren't supported
- Be sure to have
Format:
set toHTML
- Place the script inside the generated folder with all the
message.html
files - Run
python3 telegram-export-converter.py
Known Caveats
- No support for exporting actual photos and other media
- No check before overwriting files