Every telegram group has been victim to spammers joining just to shill their newest shitcoin. Moderators have to constantly monitor the chats to delete any unwanted messages, taking up precious time that could be devoted to the community instead.
The bot would detect spam messages and automatically delete them, even when moderators are away or asleep.