Remove btn

This commit is contained in:
Zakhar Izmaylov
2024-11-11 22:49:45 +03:00
parent 282c7e83d5
commit 83eb59f663
2 changed files with 3 additions and 18 deletions
+3 -6
View File
@@ -574,14 +574,11 @@ async def process_callback_renew_plan(callback_query: types.CallbackQuery):
balance = await get_balance(tg_id) balance = await get_balance(tg_id)
if balance < cost: if balance < cost:
replenish_button = types.InlineKeyboardButton( view_profile = types.InlineKeyboardButton(
text="Пополнить баланс", callback_data="replenish_balance" text="👤 Мой профиль", callback_data="view_profile"
)
back_button = types.InlineKeyboardButton(
text="Назад", callback_data="view_profile"
) )
keyboard = types.InlineKeyboardMarkup( keyboard = types.InlineKeyboardMarkup(
inline_keyboard=[[replenish_button], [back_button]] inline_keyboard=[[view_profile]]
) )
await bot.send_message( await bot.send_message(
-12
View File
@@ -104,12 +104,6 @@ async def notify_10h_keys(
callback_data=f'renew_key|{record["client_id"]}', callback_data=f'renew_key|{record["client_id"]}',
) )
], ],
[
types.InlineKeyboardButton(
text="💳 Пополнить баланс",
callback_data="replenish_balance",
)
],
[ [
types.InlineKeyboardButton( types.InlineKeyboardButton(
text="👤 Мой профиль", callback_data="view_profile" text="👤 Мой профиль", callback_data="view_profile"
@@ -182,12 +176,6 @@ async def notify_24h_keys(
callback_data=f'renew_key|{record["client_id"]}', callback_data=f'renew_key|{record["client_id"]}',
) )
], ],
[
types.InlineKeyboardButton(
text="💳 Пополнить баланс",
callback_data="replenish_balance",
)
],
[ [
types.InlineKeyboardButton( types.InlineKeyboardButton(
text="👤 Мой профиль", callback_data="view_profile" text="👤 Мой профиль", callback_data="view_profile"