Fix for coupon activation

- Корректная передача состояний и текста в купоны.
This commit is contained in:
Capybara-z
2025-04-07 02:03:11 +03:00
committed by GitHub
parent 4fdbaca7e8
commit 7fd15da4a6
+2 -1
View File
@@ -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: