Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TelegramChatAnalytics

Provides you stats per user: user user_id first_date last_date join_date invite_date total_records total_messages photo_messages sticker_messages avg_chars_per_message avg_words_per_message media_animation media_audio_file media_file media_sticker media_video_file media_video_message media_voice_message outputs to CSV file

Based on chat export file. How to obtain chat export file: https://telegram.org/blog/export-and-more (make sure you use official https://desktop.telegram.org version of client, other clients would not provide export function).

Example: stats-example.png

Usage

Required:

  • Python 3+

Install dependency

pip install pandas

Run:

python tg_chat_stats.py result.json

You'll get 30 top users output to console. File chat_users_stats.csv will be created in current directory.

You may set own parameters:

Save results to another file

python tg_chat_stats.py path/to/export.json -o my_stats.csv

show 50 results in console

python tg_chat_stats.py result.json --top 50

About

Vibe-coded analytics for Telegram chat exports

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages