Repository navigation
Version1.1
Telegram Chat Leaderboard Bot
Description
This bot tracks user activity in a Telegram chat, counting the number of messages and characters, and awards points based on the length of the messages. Additionally, the bot can handle images, awarding a fixed number of points for each image sent. The results are stored in an Excel file, which can be downloaded using a command.
Version Updates
Added:
- Image Support: The bot now awards 10 points for each image sent in the chat.
- Leaderboard: Added the ability to view the top 10 participants based on their accumulated points.
- Message Statistics: The bot stores user messages along with the timestamp of when they were sent.
- Commands:
/start: Begins tracking messages./reset: Resets all data and creates a new Excel file./top: Displays the top 10 users based on points./getfile: Downloads the Excel file with the activity statistics.
Command Descriptions
- /start - Activates the bot to start tracking messages.
- /reset - Resets all data and creates a new Excel file to store the statistics.
- /top - Displays the top 10 users based on their accumulated points.
- /getfile - Sends the Excel file containing data on user activity in the chat.
How to Use
- Start the bot by using the
/startcommand. - Send messages or images in the chat.
- Use the
/topcommand to view the current top participants. - Use the
/getfilecommand to get the Excel file with the statistics. - To reset data and create a new file, use the
/resetcommand.