ClanStat/app/utils.py

9 lines
232 B
Python
Raw Permalink Normal View History

2024-11-27 02:58:28 +03:00
from . import app
async def get_telegram_id(username: str) -> int:
"""Возвращает Telegram ID по имени пользователя"""
telegram_user = await app.get_users(username)
return telegram_user.id