From 7fd15da4a6ed0d2f7ee19a54ae43dbcf6d3cd54d Mon Sep 17 00:00:00 2001 From: Capybara-z Date: Mon, 7 Apr 2025 02:03:11 +0300 Subject: [PATCH] Fix for coupon activation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Корректная передача состояний и текста в купоны. --- handlers/start.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/start.py b/handlers/start.py index e355bd55..286c518c 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -120,7 +120,8 @@ async def process_start_logic( try: if "coupons_" in text: logger.info(f"Обнаружена ссылка на купон: {text}") - await handle_coupon_activation(message, state, session) + user_id = message.chat.id + await handle_coupon_activation(message, state, session, admin, text=text, user_id=user_id) return if "gift_" in text: