This project lets you generate message count graphs for Telegram and WhatsApp conversations.
Before using this project, you need to back up your Telegram and WhatsApp chat history:
- Telegram:
- Open the chat you want to back up in Telegram.
- Tap on the three-dot menu icon in the top-right corner.
- Select "Export Chat History" and choose whether to include media.
- Save the exported file as
telegram_chat.json
in the same folder as this script.
- WhatsApp:
- Open the chat you want to back up in WhatsApp.
- Tap on the three-dot menu icon in the top-right corner.
- Select "More" and then "Export Chat".
- Choose whether to include media and select the export method (via email, etc.).
- Save the exported file as
whatsapp_chat.txt
in the same folder as this script.
To generate a chat graph, follow these steps:
-
Make sure you have Python installed on your system.
-
Download or clone this repository to your computer.
-
Place the
telegram_chat.json
andwhatsapp_chat.txt
files in the same folder as this script. -
Open a terminal or command prompt and navigate to the project folder.
-
Install the required dependencies (matplotlib) by running the following command:
$ pip install matplotlib
-
Run the main script:
$ python main.py
-
When prompted, enter the chat type (1 for Telegram, 2 for WhatsApp).
-
The script will analyze the chat history file and generate a message count graph for the selected chat type.
I want you to know that contributions to this project are welcome. If you have any ideas, suggestions, or bug reports, please submit them as GitHub issues or create a pull request.
This project is licensed under the MIT License. See the LICENSE
file for more details.