fix(payments): add cancel button for Telegram Stars flow

This commit is contained in:
kavore
2026-02-09 00:04:05 +03:00
parent 5e9a08aeda
commit 194295d34c
@@ -78,12 +78,22 @@ async def pay_stars_callback_handler(
months=int(months), months=int(months),
traffic_gb=human_value, traffic_gb=human_value,
), ),
reply_markup=InlineKeyboardMarkup(inline_keyboard=[ reply_markup=InlineKeyboardMarkup(
[InlineKeyboardButton( inline_keyboard=[
[
InlineKeyboardButton(
text=get_text("back_to_payment_methods_button"), text=get_text("back_to_payment_methods_button"),
callback_data=f"subscribe_period:{human_value}", callback_data=f"subscribe_period:{human_value}",
)] )
]), ],
[
InlineKeyboardButton(
text=get_text("cancel_button"),
callback_data="main_action:subscribe",
)
],
]
),
) )
except Exception as e_edit: except Exception as e_edit:
logging.warning(f"Stars payment: failed to show invoice info message ({e_edit})") logging.warning(f"Stars payment: failed to show invoice info message ({e_edit})")