Skip to content

A Telegram bot that deletes spam messages, upon request of an administrator, with a warning message to the spammer.

Notifications You must be signed in to change notification settings

sadeghi-aa/spam_deleter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

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.

About

A Telegram bot that deletes spam messages, upon request of an administrator, with a warning message to the spammer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages