This commit is contained in:
Zakhar Izmaylov
2024-11-24 08:13:52 +03:00
parent 1b599d5eef
commit 12a8fb92f9
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -68,13 +68,13 @@ async def confirm_create_new_key(callback_query: CallbackQuery, state: FSMContex
if balance < RENEWAL_PLANS["1"]["price"]:
builder = InlineKeyboardBuilder()
builder.row(InlineKeyboardButton(text="👤 Личный кабинет", callback_data="profile"))
await callback_query.message.edit_text(NULL_BALANCE, reply_markup=builder.as_markup())
await callback_query.message.answer(NULL_BALANCE, reply_markup=builder.as_markup())
await state.clear()
return
logger.info(f"Balance for user {tg_id} is sufficient. Asking for device name.")
await callback_query.message.edit_text("🔑 Пожалуйста, введите имя подключаемого устройства:")
await callback_query.message.answer("🔑 Пожалуйста, введите имя подключаемого устройства:")
await state.set_state(Form.waiting_for_key_name)
logger.info(f"State set to waiting_for_key_name for user {tg_id}")
await state.update_data(creating_new_key=True)
+1 -1
View File
@@ -154,7 +154,7 @@ async def process_amount_selection(callback_query: types.CallbackQuery, state: F
@router.callback_query(F.data == "enter_custom_amount_freekassa")
async def process_enter_custom_amount(callback_query: types.CallbackQuery, state: FSMContext):
await callback_query.message.edit_text(text="Введите сумму пополнения:")
await callback_query.message.answer(text="Введите сумму пополнения:")
await state.set_state(ReplenishBalanceState.entering_custom_amount_freekassa)
+2 -2
View File
@@ -132,7 +132,7 @@ async def process_amount_selection(callback_query: types.CallbackQuery, state: F
]
)
await callback_query.message.edit_text(
await callback_query.message.answer(
text=f"Вы выбрали пополнение на {amount} рублей. Для оплаты перейдите по ссылке ниже:",
reply_markup=confirm_keyboard,
)
@@ -203,7 +203,7 @@ async def process_custom_amount_selection(callback_query: types.CallbackQuery, s
tg_id = callback_query.from_user.id
logger.info(f"User {tg_id} chose to enter a custom amount.")
await callback_query.message.edit_text(text="Пожалуйста, введите сумму пополнения в рублях (например, 150):")
await callback_query.message.answer(text="Пожалуйста, введите сумму пополнения в рублях (например, 150):")
await state.set_state(ReplenishBalanceState.waiting_for_payment_confirmation_robokassa)
+1 -1
View File
@@ -128,7 +128,7 @@ async def process_amount_selection(callback_query: types.CallbackQuery, state: F
@router.callback_query(F.data == "enter_custom_amount_stars")
async def process_enter_custom_amount(callback_query: types.CallbackQuery, state: FSMContext):
await callback_query.message.edit_text(text="Введите сумму пополнения:")
await callback_query.message.answer(text="Введите сумму пополнения:")
await state.set_state(ReplenishBalanceState.entering_custom_amount_stars)
+1 -1
View File
@@ -138,7 +138,7 @@ async def process_amount_selection(callback_query: types.CallbackQuery, state: F
]
)
await callback_query.message.edit_text(
await callback_query.message.answer(
text=f"Вы выбрали пополнение на {amount} рублей.",
reply_markup=confirm_keyboard,
)