MasterCruelty / TelegramChatInsights

A simple userbot to show some data about your chats on Telegram.
MIT License
1 stars 0 forks source link
chart graph pyrogram python3 statistics telegram-api telegramstat userbot-telegram

License image image CodeSize image image image image

Telegram Chat Insights

What is it

This project is about a Telegram app made by creating a userbot based on Pyrogram.
The main feature is to show your data about personal chat by plotting charts. It's still in development and more features could be implemented.

Contribute

Feel free to contribute and improve the project. You can read the guidelines to contribute here

How to setup

The correct way to setup this bot is to compile the file config.json. So it's necessary to have these data:

Name of commands to put inside config.json can be copied from source code or renamed inside source code and then copied in json file.

How the userbot's commands works

The features of the commands are explained inside help.json. It is the file which is used by the userbot to reply at /help <command name>.

How the admin/super commands works

Example of execution

This is an example of piechart plotted. It shows the weight of every chat saved. image

How data is collected

There's a dedicated command to do that: /newcheck
By launching it, it starts calculating all the amount of messages for every saved chat using Telegram API and save those data with the current date.
The next time you decide to launch this command, you can view the difference between the last check and the new one.
At the moment this command is launched manually by the user, thought initially as userbot not running 24/7.
In the near future it could be instead an automatic check made daily or weekly and then a 24/7 running app.

Dependencies

External projects used