This bot removes status updates from Telegram groups and channels.
Status updates include messages like Foo joined the group [by invite link], Foo added Bar, Foo kicked Bar,
Foo changes the group name to «Bar» and Foo pinned "<message>" to name a few.
If you don't want to set up your own bot, feel free to add @StatusCleanerBot to your group or channel, promote it to admin and remove all rights except for Can delete messages.
- Clone this repository:
git clone https://github.com/tobiaswicker/StatusCleaner.git - Download Python 3.x if you haven't already
- Install Python-Telegram-Bot by running
pip install python-telegram-botfrom a terminal. - Create a bot with @BotFather.
- Create a username for yourself in the settings of your Telegram account, if you haven't already done so.
- Rename
config-bot.json.exampletoconfig-bot.json, edit it, paste in theBOT_TOKENas well asYOUR_TELEGRAM_USERNAME. Remember that this should be your username, not your bots username. - Run the bot from a terminal:
python statuscleanerbot.py
Add the bot to your group or channel and promote it to admin. The only admin permission required is Can delete messages.