from aiogram import Router, enums, types, F
from engine import CounterMiddleware
router = Router()
router.message.middleware(
CounterMiddleware
)
@router.message(F.chat.type == enums.ChatType.PRIVATE and F.text and F.photo and F.video)
async def private_messages(message: types.Message):
print(message)