From f81fc74f176ee5b1105a242ce60e50fb1fb86875 Mon Sep 17 00:00:00 2001 From: Capybara-z Date: Wed, 18 Jun 2025 19:03:25 +0300 Subject: [PATCH] Fix balance buttons --- handlers/buttons.py | 2 +- handlers/profile.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/handlers/buttons.py b/handlers/buttons.py index 54c0b011..08126c24 100644 --- a/handlers/buttons.py +++ b/handlers/buttons.py @@ -76,7 +76,7 @@ PC_MACOS = "🍏 macOS" TV = "📺 Телевизор" ROUTER = "📶 Роутер" MANUAL_INSTRUCTIONS = "📖 Ручная установка" -RENEW_KEY = "🛒 Купить | 🔄 Продлить" +RENEW_KEY = "🛒 Купить VPN | 🔄 Продлить VPN" RENEW_KEY_NOTIFICATION = "🔄 Продлить подписку" TV_CONTINUE = "▶ Продолжить" TV_INSTRUCTIONS = "📖 Полная инструкция" diff --git a/handlers/profile.py b/handlers/profile.py index df9d7c0c..7ba472ca 100644 --- a/handlers/profile.py +++ b/handlers/profile.py @@ -88,8 +88,9 @@ async def process_callback_view_profile( builder.row(InlineKeyboardButton(text=TRIAL_SUB, callback_data="create_key")) else: builder.row(InlineKeyboardButton(text=ADD_SUB, callback_data="create_key")) + if BALANCE_BUTTON: - builder.row(InlineKeyboardButton(text=BALANCE, callback_data="balance")) + builder.row(InlineKeyboardButton(text=BALANCE, callback_data="balance")) row_buttons = [] if REFERRAL_BUTTON: