You can use this tool to create a word cloud of your Telegram chats.
-
Open Telegram Desktop installed on your computer, then click Settings > Export Telegram data.
-
Select the JSON format option or the whole program simply won't work.
-
Save the file in a directory and don't forget its name
-
You need a stopwords list for your language in order to clean the chat from useless words. You can find here a collection of stopwords lists for multiple languages. Download the one you need.
-
If you use Windows, you can download the installation binary. Install the program on your PC and launch it.
If you use another OS or you want to run from source code:
-
Install the required libraries
pip install -r requirements.txt
-
Launch the script and follow the instructions
python main.py
-
Enjoy(?)
1. Masked wordcloud
The script supports masked word clouds implemented by the WordCloud Python library but their quality depends on the mask that the user chooses.
You get the best results with a black and white PNG image like this one.
The text would be placed inside the black image portion.
2. From PNG to mask
You can select the option to use a non b/w PNG and the script will try to make a good mask out of it. You can get the best result with images that have clear contours and plain colours without fancy textures.
3. Use python virtual environments
I suggest you to use a Python virtual environment ^1 ^2 to not mess around with the Python installation that's part of your OS.