This commit is contained in:
Michał Rudowicz 2024-06-12 06:50:03 +02:00
parent 768fc63c70
commit 51f34324fb
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ async def new_msg(update, context, regexes):
is_spam = True
break
if is_spam:
logger.info(f"Banning: {update.message}")
logging.info(f"Banning: {update.message}")
update.message.chat.ban_member(update.message.from_user.id)
update.message.delete()