Delete any message worthy of a ban.
This commit is contained in:
parent
69e5e1b208
commit
34f6977814
@ -1,6 +1,6 @@
|
||||
# Telegram Group Chat Logger
|
||||
# Telegram Bot
|
||||
|
||||
This is a bot that logs public Group Chats to a Postgres Database.
|
||||
*NOTE* Development version of bot than does message monitoring and more.
|
||||
|
||||
## Installation
|
||||
|
||||
|
2
bot.py
2
bot.py
@ -79,6 +79,8 @@ class TelegramMonitorBot:
|
||||
update.message.reply_text("DEBUG: Ban message match: {}".format(update.message.text.encode('utf-8')))
|
||||
print("Ban message match: {}".format(update.message.text.encode('utf-8')))
|
||||
self.ban_user(update)
|
||||
# Any message that causes a ban gets deleted
|
||||
update.message.delete()
|
||||
|
||||
|
||||
def logger(self, bot, update):
|
||||
|
Loading…
Reference in New Issue
Block a user