Первый полностью рабочий функционал
This commit is contained in:
12
handlers/groups/chat.py
Normal file
12
handlers/groups/chat.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from aiogram import types
|
||||
from aiogram.dispatcher import FSMContext
|
||||
from filters import IsGroup
|
||||
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()
|
||||
Reference in New Issue
Block a user