добавил подсчёт количества рефералов

This commit is contained in:
2025-12-05 13:58:45 +03:00
parent eb9e00b27c
commit f16cb3bc2e
3 changed files with 56 additions and 1 deletions

View File

@@ -61,6 +61,18 @@ class DatabaseManager:
"""
return await self.postgres_repo.get_last_transactions(telegram_id, limit)
async def get_referrals_count(self,telegram_id: int) -> int:
"""
Docstring for get_referrals_count
:param self: Description
:param telegram_id: Description
:type telegram_id: int
:return: Description
:rtype: int
"""
return await self.postgres_repo.get_referrals_count(telegram_id)
# async def update_balance(self, telegram_id: int, amount: float):
# """
# Обновляет баланс пользователя и добавляет транзакцию.