An extension of TopSupergroupsBot to post leaderboards in channels
The goal of this repo is to get groups data from TopSupergroupsBot, create ad hoc channels leaderboards (short and with comparisons with the previous one), and post the message on a telegram channel.
The config.py
file contains some parameter that needs to be adjusted.
The example.py
file is an example on how to run one of the available leaderboards (in leaderboards
folder).
The script can be run via cron on intervals.
The already_joined
folder is a sort of .txt files database to keep trace of the channels that already joined the leaderboard, to mark them with the 'back' or 'new' emoji.
Along with the leaderboard sent in the desired channel, the admin will also receive in private chat a copy of new updated database as a backup.
The following picture is an example of a leaderboard generated by TSBCleaderboards ordered by amount of members using real data got from TopSupergroupsBot so it contains real telegram third party groups (i don't have responsabilities about names so).