Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 907 Bytes

README.md

File metadata and controls

28 lines (15 loc) · 907 Bytes

Spam Deleter Telegram Bot

A Telegram bot that deletes spam messages upon request of an adminstrator.

This code uses telebot library and is based on flask. This is how the bot works (for you as a group admin):


1- Add the bot to the group. It has to be a supergroup, i.e. previous messages should be visible to new members.

2- Make it an admin (at least with 'Delete messages' permission).

3- Reply to a member's message with /del command.

4- Their message will be deleted by the bot.

5- A warning message mentioning the spammer will be sent to the group. (You can replace the warning text with your preferred message)

6- Your /del command will also be deleted to clean up.


Note: A /del command will be ignored in these cases:

1- If it doesn't reply to any message.

2- If a non-admin member uses it.

3- If it's used for deleting another admin's message.