Skip to content

Script to convert Telegram .html chat export files to easier to process .csv.

License

Notifications You must be signed in to change notification settings

gabekanegae/telegram-export-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

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 to HTML
  • 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

About

Script to convert Telegram .html chat export files to easier to process .csv.

Resources

License

Stars

Watchers

Forks

Languages