diff --git a/bot/handlers/user/promo_user.py b/bot/handlers/user/promo_user.py index b5db0c4..cefcd2c 100644 --- a/bot/handlers/user/promo_user.py +++ b/bot/handlers/user/promo_user.py @@ -193,7 +193,16 @@ async def process_promo_code_input(message: types.Message, state: FSMContext, f"Promo code '{code_input}' application failed for user {user.id}. " f"Bonus reason: {result}. Discount reason: {result_discount}" ) - response_to_user_text = result_discount # Prefer the discount attempt error + bonus_not_found_text = _( + "promo_code_not_found", code=code_input.upper() + ) + discount_not_found_text = _( + "promo_code_not_found_or_not_discount", code=code_input.upper() + ) + if result != bonus_not_found_text and result_discount == discount_not_found_text: + response_to_user_text = result + else: + response_to_user_text = result_discount # Prefer the discount attempt error reply_markup = get_back_to_main_menu_markup( current_lang, i18n )