#telegram #telegram-histogram #telegram-export

app telegrust-histo

Generate a message-density histogram from your exported Telegram chat

3 releases

0.1.2 Apr 18, 2021
0.1.1 Jan 30, 2021
0.1.0 Jan 18, 2021

#190 in Visualization

43 downloads per month

MIT license

10KB
131 lines

telegrust-histo

Why? I was curious, and Python proved too slow1 at parsing timestamps, although the plot looks nicer there.

Install:

# install telegrust-histo with cargo, 
# provided that you have the rust toolchain set up.
cargo install telegrust-histo

Usage:

# cd to wherever your exported folder is
cd ~/Downloads/Telegram\ Desktop/ChatExport_2021-01-15 

# print options
telegrust-histo -help

# run it
telegrust-histo -b 300 -v

Demo:

~/ChatExport_2021-01-15> time telegrust-histo -b 200  # time is optional btw of course
[+] Generated histogram_200.svg (using 200 bins) in the current folder.
[+] Processed 47 files (46610 messages) from 2017-04-16 22:02 to 2021-01-13 13:30
telegrust-histo  0.27s user 0.02s system 97% cpu 0.295 total

1 0.3 seconds vs 30 seconds benchmarked on the same ~45k messages dataset.

Dependencies

~3.5–4.5MB
~79K SLoC