From 080a99cd55206cbb356e8fa591a6055495db99c6 Mon Sep 17 00:00:00 2001 From: Zakhar Izmaylov Date: Sun, 5 Jan 2025 23:24:01 +0300 Subject: [PATCH] Update update_subscription user --- handlers/keys/keys.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/handlers/keys/keys.py b/handlers/keys/keys.py index 8db9f50b..eb039ff2 100644 --- a/handlers/keys/keys.py +++ b/handlers/keys/keys.py @@ -190,6 +190,13 @@ async def process_callback_view_key(callback_query: types.CallbackQuery, session builder = InlineKeyboardBuilder() + builder.row( + InlineKeyboardButton( + text="🔄 Обновить подписку", + callback_data=f"update_subscription|{key_name}", + ) + ) + builder.row( InlineKeyboardButton(text="🍏 Скачать для iOS", url=DOWNLOAD_IOS), InlineKeyboardButton( @@ -222,15 +229,7 @@ async def process_callback_view_key(callback_query: types.CallbackQuery, session InlineKeyboardButton( text="❌ Удалить", callback_data=f"delete_key|{key_name}" ), - ) - - if not key.startswith(PUBLIC_LINK): - builder.row( - InlineKeyboardButton( - text="🔄 Обновить подписку", - callback_data=f"update_subscription|{key_name}", - ) - ) + ) builder.row( InlineKeyboardButton(text="👤 Личный кабинет", callback_data="profile")