diff --git a/handlers/__pycache__/pay.cpython-310.pyc b/handlers/__pycache__/pay.cpython-310.pyc index 97a39129..8f4dbf61 100644 Binary files a/handlers/__pycache__/pay.cpython-310.pyc and b/handlers/__pycache__/pay.cpython-310.pyc differ diff --git a/handlers/pay.py b/handlers/pay.py index 826f3d6f..fbad89e2 100644 --- a/handlers/pay.py +++ b/handlers/pay.py @@ -42,20 +42,6 @@ async def send_message_with_deletion(chat_id, text, reply_markup=None, state=Non async def process_callback_replenish_balance(callback_query: types.CallbackQuery, state: FSMContext): tg_id = callback_query.from_user.id - key_count = await get_key_count(tg_id) - if key_count <= 0: - # Создаем кнопки "Создать ключ" и "Назад" - create_key_button = InlineKeyboardButton(text='Создать ключ', callback_data='create_key') - back_button = InlineKeyboardButton(text='⬅️ Назад', callback_data='back_to_profile') - keyboard = InlineKeyboardMarkup(inline_keyboard=[[create_key_button, back_button]]) - - await callback_query.message.edit_text( - text="У вас нет ключей. Пополнение баланса возможно только при наличии ключа.\n" - "Пожалуйста, создайте ключ для продолжения.", - reply_markup=keyboard - ) - return - await state.set_state(ReplenishBalanceState.choosing_transfer_method) keyboard = InlineKeyboardMarkup(inline_keyboard=[ [InlineKeyboardButton(text='По реквизитам', callback_data='transfer_method_requisites')],