From 9d8f5a97f7eca2300849b4c676eaebd9bbeb2e12 Mon Sep 17 00:00:00 2001 From: mihalin Date: Fri, 2 Sep 2022 04:59:18 +0400 Subject: [PATCH] Revert "debug print" This reverts commit 16e944707fc59543e1b7b3cd32a33c99dd00a85a. --- server/custom.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/custom.py b/server/custom.py index 4712c96..d17aed6 100644 --- a/server/custom.py +++ b/server/custom.py @@ -243,18 +243,13 @@ async def edited_message_handler(message: types.Message, *args, **kwargs): async def receive_invite(message: types.Message): bot = db_bot_instance.get() - print("RECEIVE INVITE") for member in message.new_chat_members: - print("MEMBER ", str(member)) if member.id == message.bot.id: - print("MEMBER IS BOT") chat, _ = await GroupChat.get_or_create(chat_id=message.chat.id, defaults={"name": message.chat.full_name}) chat.name = message.chat.full_name - print("SAVE CHAT ", _) await chat.save() if chat not in await bot.group_chats.all(): - print("ADD CHAT") await bot.group_chats.add(chat) await bot.save() break