Update cloudpayments.py

This commit is contained in:
Egor
2026-01-19 07:52:54 +03:00
committed by GitHub
parent bd6498fb73
commit f8d7b3288c

View File

@@ -260,7 +260,9 @@ class CloudPaymentsPaymentMixin:
# Auto-purchase if enabled
auto_purchase_success = False
try:
auto_purchase_success = await auto_purchase_saved_cart_after_topup(db, user)
auto_purchase_success = await auto_purchase_saved_cart_after_topup(
db, user, bot=getattr(self, "bot", None)
)
except Exception as error:
logger.exception("Ошибка автопокупки после CloudPayments: %s", error)