fix click
This commit is contained in:
@@ -694,7 +694,7 @@ class BotInterface:
|
||||
# Пополнение рублёвого баланса
|
||||
new_rub = await interface.rub_storage.add_balance(uid, payment["rub"])
|
||||
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"))
|
||||
await callback.message.edit_text(
|
||||
f"✅ Баланс пополнен!\n\n"
|
||||
@@ -770,8 +770,7 @@ class BotInterface:
|
||||
|
||||
await callback.message.edit_text(
|
||||
f"🛒 Подтвердите покупку\n\n"
|
||||
f"🔢 {clicks} переходов\n"
|
||||
f"💰 Стоимость: {cost} ₽"
|
||||
f"🔢 {clicks} переходов × {settings.CLICK_PRICE_RUB:.0f} ₽ = {cost} ₽"
|
||||
+ (f"\n\n🪙 Ваш баланс: {rub_bal} ₽" if rub_bal > 0 else ""),
|
||||
reply_markup=builder.as_markup()
|
||||
)
|
||||
@@ -968,8 +967,7 @@ class BotInterface:
|
||||
|
||||
await callback.message.edit_text(
|
||||
f"Счёт создан\n\n"
|
||||
f"🔢 {clicks} переходов\n"
|
||||
f"💰 {rub} ₽\n\n"
|
||||
f"🔢 {clicks} переходов × {settings.CLICK_PRICE_RUB:.0f} ₽ = {rub} ₽\n\n"
|
||||
f"{body}",
|
||||
reply_markup=builder.as_markup()
|
||||
)
|
||||
@@ -2506,7 +2504,7 @@ class BotInterface:
|
||||
else:
|
||||
builder.row(
|
||||
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="enter_admin_mode"))
|
||||
|
||||
Reference in New Issue
Block a user