UltimateChatRestorer is a Python project that provides a script to convert Telegram chat exports (in JSON format) into a text file that resembles WhatsApp’s chat format. You can then import the converted chat back into Telegram.
You’ll need to have Python installed on your computer. Python is available for free and can be downloaded from python.org.
python3 --version
.python3 --version
in your terminal.Export your Telegram chat as a JSON file by following Telegram’s export instructions. Name the file result.json
.
Save the Python script (The Ultimate Chat restorer.py
) to a directory on your computer where your result.json
file is also located.
result.json
.Shift
and right-click in the folder, then select "Open PowerShell window here" or "Open Command window here."Type the following command and press Enter:
python "The Ultimate Chat restorer.py"
Open Terminal (you can find it in Applications > Utilities).
Navigate to the folder where your script and result.json
are stored using the cd
command. For example:
cd /path/to/your/folder
Run the script with:
python3 "The Ultimate Chat restorer.py"
Open your terminal.
Navigate to the directory where the script and result.json
are located:
cd /path/to/your/folder
Run the script:
python3 "The Ultimate Chat restorer.py"
After running the script, you’ll find a new file named _chat.txt
in the same folder. This file contains your converted Telegram chat in WhatsApp format.
_chat.txt
into Telegram_chat.txt
and choose "Add to archive" (Windows) or "Compress" (Mac/Linux).WhatsApp Chat - xxxx.zip
, replacing xxxx
with the name of the user whose chat you’re importing.WhatsApp Chat - xxxx.zip
file to your mobile device.Telegram will automatically recognize the file as a chat history and import it accordingly.
If you encounter any issues, please make sure:
result.json
.Contributions are welcome! If you find any issues or have ideas for improvements, please open an issue or submit a pull request.