From 65da3a57a7725fae94f42c166de34ba6625426c0 Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 22 Dec 2025 19:32:36 +0300 Subject: [PATCH] Update inline.py --- app/keyboards/inline.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/keyboards/inline.py b/app/keyboards/inline.py index 79cf296e..7d308283 100644 --- a/app/keyboards/inline.py +++ b/app/keyboards/inline.py @@ -507,7 +507,12 @@ def get_main_menu_keyboard( ) # Добавляем кнопку докупки трафика для лимитированных подписок - if subscription and not subscription.is_trial and subscription.traffic_limit_gb > 0: + if ( + settings.BUY_TRAFFIC_BUTTON_VISIBLE + and subscription + and not subscription.is_trial + and subscription.traffic_limit_gb > 0 + ): paired_buttons.append( InlineKeyboardButton(text=texts.t("BUY_TRAFFIC_BUTTON", "📈 Докупить трафик"), callback_data="buy_traffic") ) @@ -1372,9 +1377,10 @@ def get_payment_methods_keyboard(amount_kopeks: int, language: str = DEFAULT_LAN has_direct_payment_methods = True if settings.is_platega_enabled() and settings.get_platega_active_methods(): + platega_name = settings.get_platega_display_name() keyboard.append([ InlineKeyboardButton( - text=texts.t("PAYMENT_PLATEGA", "💳 Platega"), + text=texts.t("PAYMENT_PLATEGA", f"💳 {platega_name}"), callback_data=_build_callback("platega"), ) ])