From f8d7b3288cf64706b61258c03b3992c041c0e00c Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 19 Jan 2026 07:52:54 +0300 Subject: [PATCH] Update cloudpayments.py --- app/services/payment/cloudpayments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/payment/cloudpayments.py b/app/services/payment/cloudpayments.py index dfad134f..05e942f0 100644 --- a/app/services/payment/cloudpayments.py +++ b/app/services/payment/cloudpayments.py @@ -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)