From 83eb59f66364b21a37d04d5dd8780ec00dce9653 Mon Sep 17 00:00:00 2001 From: Zakhar Izmaylov Date: Mon, 11 Nov 2024 22:49:45 +0300 Subject: [PATCH] Remove btn --- handlers/keys/keys.py | 9 +++------ handlers/notifications.py | 12 ------------ 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/handlers/keys/keys.py b/handlers/keys/keys.py index 5ecb0ea0..1ad8819d 100644 --- a/handlers/keys/keys.py +++ b/handlers/keys/keys.py @@ -574,14 +574,11 @@ async def process_callback_renew_plan(callback_query: types.CallbackQuery): balance = await get_balance(tg_id) if balance < cost: - replenish_button = types.InlineKeyboardButton( - text="Пополнить баланс", callback_data="replenish_balance" - ) - back_button = types.InlineKeyboardButton( - text="Назад", callback_data="view_profile" + view_profile = types.InlineKeyboardButton( + text="👤 Мой профиль", callback_data="view_profile" ) keyboard = types.InlineKeyboardMarkup( - inline_keyboard=[[replenish_button], [back_button]] + inline_keyboard=[[view_profile]] ) await bot.send_message( diff --git a/handlers/notifications.py b/handlers/notifications.py index 434ebead..3ee57d13 100644 --- a/handlers/notifications.py +++ b/handlers/notifications.py @@ -104,12 +104,6 @@ async def notify_10h_keys( callback_data=f'renew_key|{record["client_id"]}', ) ], - [ - types.InlineKeyboardButton( - text="💳 Пополнить баланс", - callback_data="replenish_balance", - ) - ], [ types.InlineKeyboardButton( text="👤 Мой профиль", callback_data="view_profile" @@ -182,12 +176,6 @@ async def notify_24h_keys( callback_data=f'renew_key|{record["client_id"]}', ) ], - [ - types.InlineKeyboardButton( - text="💳 Пополнить баланс", - callback_data="replenish_balance", - ) - ], [ types.InlineKeyboardButton( text="👤 Мой профиль", callback_data="view_profile"