diff --git a/handlers/payments/cryprobot_pay.py b/handlers/payments/cryprobot_pay.py index d25c263d..3704de6b 100644 --- a/handlers/payments/cryprobot_pay.py +++ b/handlers/payments/cryprobot_pay.py @@ -54,8 +54,10 @@ async def process_callback_pay_cryptobot(callback_query: types.CallbackQuery, st callback_data="enter_custom_amount_crypto", ) ) - builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="back_to_profile")) - key_count = await get_key_count(callback_query.message.chat.id) + + builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="view_profile")) + + key_count = await get_key_count(tg_id) if key_count == 0: exists = await check_connection_exists(callback_query.message.chat.id) if not exists: