From 10601761e6329ea5ca583707b414632fed09b974 Mon Sep 17 00:00:00 2001 From: Capybara-z Date: Wed, 2 Apr 2025 21:24:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлено отображение пробной подписки если доступна в профиле. --- handlers/profile.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/handlers/profile.py b/handlers/profile.py index 8fe644b0..37014528 100644 --- a/handlers/profile.py +++ b/handlers/profile.py @@ -113,9 +113,12 @@ async def process_callback_view_profile( builder = InlineKeyboardBuilder() if trial_status == 0 or key_count == 0: - builder.row(InlineKeyboardButton(text=ADD_SUB, callback_data="create_key")) - else: + if key_count > 0: builder.row(InlineKeyboardButton(text=MY_SUBS, callback_data="view_keys")) + elif trial_status == 0: + builder.row(InlineKeyboardButton(text="🎁 Пробная подписка", callback_data="create_key")) + else: + builder.row(InlineKeyboardButton(text=ADD_SUB, callback_data="create_key")) builder.row(InlineKeyboardButton(text=BALANCE, callback_data="balance")) row_buttons = []