A simple python app to calculate how much time you spent chatting with somebody!
First, you should export your chat using the Telgram Desktop.
Go to your desired chat and click on the three dots on the top right corner of the screen.
Select Export Chat History.
you don't need to export photos, videos, etc, so uncheck the checkbox next to the photos.
By defualt, it will export everything in the HTML format. change the format to JSON by clicking on the "Format:HTML" and selecting the "Machine-readalbe JSON" option.
Now export the chat. It may take a while.
You now have the Jason file, copy it to this folder and run the script.
The app is still in development, so you see some debugging messages. The last thing you should see is the chat duration in the Day Hours:Minutes:Seconds format.