fix click

This commit is contained in:
Yuriy Yuriev
2026-05-22 19:45:37 +07:00
parent bad7966fc4
commit 95d3cb008c
+4 -6
View File
@@ -694,7 +694,7 @@ class BotInterface:
# Пополнение рублёвого баланса # Пополнение рублёвого баланса
new_rub = await interface.rub_storage.add_balance(uid, payment["rub"]) new_rub = await interface.rub_storage.add_balance(uid, payment["rub"])
builder = InlineKeyboardBuilder() builder = InlineKeyboardBuilder()
builder.row(InlineKeyboardButton(text="🛒 Купить переходы", callback_data="visit_shop")) builder.row(InlineKeyboardButton(text=f"🛒 Купить переходы ({settings.CLICK_PRICE_RUB:.0f} ₽/шт)", callback_data="visit_shop"))
builder.row(InlineKeyboardButton(text="🔙 В кабинет", callback_data="my_balance")) builder.row(InlineKeyboardButton(text="🔙 В кабинет", callback_data="my_balance"))
await callback.message.edit_text( await callback.message.edit_text(
f"✅ Баланс пополнен!\n\n" f"✅ Баланс пополнен!\n\n"
@@ -770,8 +770,7 @@ class BotInterface:
await callback.message.edit_text( await callback.message.edit_text(
f"🛒 Подтвердите покупку\n\n" f"🛒 Подтвердите покупку\n\n"
f"🔢 {clicks} переходов\n" f"🔢 {clicks} переходов × {settings.CLICK_PRICE_RUB:.0f} ₽ = {cost}"
f"💰 Стоимость: {cost}"
+ (f"\n\n🪙 Ваш баланс: {rub_bal}" if rub_bal > 0 else ""), + (f"\n\n🪙 Ваш баланс: {rub_bal}" if rub_bal > 0 else ""),
reply_markup=builder.as_markup() reply_markup=builder.as_markup()
) )
@@ -968,8 +967,7 @@ class BotInterface:
await callback.message.edit_text( await callback.message.edit_text(
f"Счёт создан\n\n" f"Счёт создан\n\n"
f"🔢 {clicks} переходов\n" f"🔢 {clicks} переходов × {settings.CLICK_PRICE_RUB:.0f} ₽ = {rub}\n\n"
f"💰 {rub}\n\n"
f"{body}", f"{body}",
reply_markup=builder.as_markup() reply_markup=builder.as_markup()
) )
@@ -2506,7 +2504,7 @@ class BotInterface:
else: else:
builder.row( builder.row(
InlineKeyboardButton(text="💳 Пополнить криптой", callback_data="topup_main"), InlineKeyboardButton(text="💳 Пополнить криптой", callback_data="topup_main"),
InlineKeyboardButton(text="🛒 Купить переходы", callback_data="visit_shop"), InlineKeyboardButton(text=f"🛒 Купить переходы ({settings.CLICK_PRICE_RUB:.0f} ₽/шт)", callback_data="visit_shop"),
) )
builder.row(InlineKeyboardButton(text="🧾 История платежей", callback_data="payment_history")) builder.row(InlineKeyboardButton(text="🧾 История платежей", callback_data="payment_history"))
builder.row(InlineKeyboardButton(text="🔑 Режим администратора", callback_data="enter_admin_mode")) builder.row(InlineKeyboardButton(text="🔑 Режим администратора", callback_data="enter_admin_mode"))