From d874d00dc503a108a38d58d4288c9d7a0410c483 Mon Sep 17 00:00:00 2001 From: jsdio Date: Fri, 11 Mar 2022 02:11:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B1?= =?UTF-8?q?=D0=BE=D1=82=20=D0=BD=D0=B5=20=D1=83=D0=B4=D0=B0=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BE=D1=82=20=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D1=87=D0=B0=D1=82=20?= =?UTF-8?q?=D1=8F=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=BE=D0=BC=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B5=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/groups/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/groups/chat.py b/handlers/groups/chat.py index f670d31..fa2cdf4 100644 --- a/handlers/groups/chat.py +++ b/handlers/groups/chat.py @@ -8,5 +8,5 @@ from loader import dp @dp.message_handler(IsGroup(), content_types=types.ContentTypes.ANY) async def bot_echo_all(message: types.Message, state: FSMContext): - if message.sender_chat is not None: - await message.delete() \ No newline at end of file + if message.sender_chat is not None and not message.is_automatic_forward: + await message.delete()