Add admin notifications for promos and non-YK payments

This commit is contained in:
Machka Pasla
2025-07-11 19:28:45 +07:00
parent 0e84a480fc
commit 68459a7075
6 changed files with 48 additions and 1 deletions
+11
View File
@@ -10,6 +10,7 @@ from db.dal import payment_dal, user_dal
from .subscription_service import SubscriptionService
from .referral_service import ReferralService
from bot.middlewares.i18n import JsonI18n
from .notification_service import notify_admin_new_payment
class StarsService:
@@ -133,3 +134,13 @@ class StarsService:
logging.error(
f"Failed to send stars payment success message: {e_send}")
await notify_admin_new_payment(
self.bot,
self.settings,
self.i18n,
message.from_user.id,
months,
float(stars_amount),
currency="XTR",
)