second init

This commit is contained in:
2024-11-27 02:58:28 +03:00
commit 10aa70702c
19 changed files with 875 additions and 0 deletions

8
app/utils.py Normal file
View File

@@ -0,0 +1,8 @@
from . import app
async def get_telegram_id(username: str) -> int:
"""Возвращает Telegram ID по имени пользователя"""
telegram_user = await app.get_users(username)
return telegram_user.id