chore: Code refactoring

This commit is contained in:
ITQ
2024-03-20 23:05:42 +03:00
parent 6d755490d6
commit 3ca80dea1f
2 changed files with 23 additions and 7 deletions
+3 -1
View File
@@ -1,4 +1,3 @@
# type: ignore
__all__ = ()
from aiogram import Router
@@ -16,6 +15,9 @@ router = Router(name="profile_command")
@router.message(Command("profile"), Registered())
async def command_profile_handler(message: Message) -> None:
if message.from_user is None:
return
user = User().get_user_by_telegram_id(message.from_user.id)
await message.answer(