This commit is contained in:
2026-04-29 10:32:30 +03:00
parent b380b0ce9b
commit f78f7bf1df
+2 -2
View File
@@ -38,8 +38,8 @@ async def start_handler(
last_name=message.from_user.last_name, last_name=message.from_user.last_name,
) )
if user and user.username != message.from_user.username: if user and user.username and user.username.strip().lower() != message.from_user.username.strip().lower():
await users_repository.update_user(user_id=message.from_user.id, username=message.from_user.id) await users_repository.update_user(user_id=message.from_user.id, username=message.from_user.username)
is_creator = message.from_user.id == config.bot.creator_id is_creator = message.from_user.id == config.bot.creator_id
is_admin = user.is_admin if user else False is_admin = user.is_admin if user else False