second init
This commit is contained in:
8
app/utils.py
Normal file
8
app/utils.py
Normal 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
|
||||
Reference in New Issue
Block a user