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()