9 lines
232 B
Python
9 lines
232 B
Python
from . import app
|
|
|
|
|
|
async def get_telegram_id(username: str) -> int:
|
|
"""Возвращает Telegram ID по имени пользователя"""
|
|
telegram_user = await app.get_users(username)
|
|
|
|
return telegram_user.id
|