Bot to remove messages that contains words from black-list.
Commands/ How to use
- Add the bot as admin into your chatroom
- Give bot a permission to delete messages. No other permissions are required
- Configure notifications and language of notifications, see commands section.
/grep config– see bot configuration for the current chat e.g. list of blocked words
/grep check– check if bot is installed correctly.
/grep set notify_actions=yes– tell bot to write explanation to the chat about deleted messages (recommended).
/grep set notify_actions=no– tell bot to remove messages silently
/grep set lang=<lang-code>– setup language of notifications. Valid values for this settings is en and ru.
/grep add word <word>– add word to black list. Example:
/grep add word porn
/grep remove word <word>– stop blocking word. Example remove word from blacklist. Example:
/grep remove word porn
/grep reload_admins– ask bot to reload admin IDs for current chat. Admins list is collected once and cached. Use this command to update cached data.