UI: тарифы Basic/Pro/Family и меню оплат
This commit is contained in:
@@ -92,12 +92,11 @@ def ticket_keyboard():
|
||||
def buy_keyboard():
|
||||
"""
|
||||
Меню выбора тарифа.
|
||||
Лейблы ближе к твоему стилю, но callback’и остаются старые.
|
||||
"""
|
||||
builder = InlineKeyboardBuilder()
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🐣 Lark (Basic)",
|
||||
text="🐣 Lark Basic",
|
||||
callback_data="subs",
|
||||
)
|
||||
)
|
||||
@@ -109,8 +108,8 @@ def buy_keyboard():
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="ℹ️ О тарифах",
|
||||
url="https://t.me/proxylark/19",
|
||||
text="👨👩👧 Lark Family",
|
||||
callback_data="subs_family",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
@@ -136,51 +135,36 @@ def subhist_keyboard():
|
||||
return builder.as_markup()
|
||||
|
||||
|
||||
def popup_keyboard():
|
||||
def payment_methods_keyboard(amount: int):
|
||||
"""
|
||||
Пополнение: суммы как в твоём топап-меню.
|
||||
Способы оплаты для выбранной суммы.
|
||||
ЛаркинсКоины убрал нахер
|
||||
"""
|
||||
builder = InlineKeyboardBuilder()
|
||||
for amount in [200, 300, 600, 1000]:
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text=f"{amount} ₽",
|
||||
callback_data=f"popup:{amount}",
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="⭐ Telegram Stars",
|
||||
callback_data=f"method_stars_{amount}",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="💵 YooKassa",
|
||||
callback_data=f"method_ykassa_{amount}",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🪙 CryptoBot",
|
||||
callback_data=f"method_crypto_{amount}",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🔙 Назад",
|
||||
callback_data="profile",
|
||||
)
|
||||
)
|
||||
return builder.as_markup()
|
||||
|
||||
|
||||
|
||||
def balance_keyboard():
|
||||
"""
|
||||
Баланс
|
||||
"""
|
||||
builder = InlineKeyboardBuilder()
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🪙 Пополнить баланс",
|
||||
callback_data="popup",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🧾 История транзакций",
|
||||
callback_data="tranhist",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🔙 Назад",
|
||||
callback_data="profile",
|
||||
)
|
||||
)
|
||||
return builder.as_markup()
|
||||
|
||||
|
||||
@@ -248,6 +232,38 @@ def tarif_Lark_pro_keyboard():
|
||||
return builder.as_markup()
|
||||
|
||||
|
||||
def tarif_Lark_family_keyboard():
|
||||
"""
|
||||
Тариф Lark Family.
|
||||
"""
|
||||
builder = InlineKeyboardBuilder()
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="👨👩👧 Lark Family 1 месяц",
|
||||
callback_data="Lark:Family:1",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="👨👩👧 Lark Family 6 месяцев",
|
||||
callback_data="Lark:Family:6",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="👨👩👧 Lark Family 12 месяцев",
|
||||
callback_data="Lark:Family:12",
|
||||
)
|
||||
)
|
||||
builder.row(
|
||||
InlineKeyboardButton(
|
||||
text="🔙 Назад",
|
||||
callback_data="buy_subscription",
|
||||
)
|
||||
)
|
||||
return builder.as_markup()
|
||||
|
||||
|
||||
def guide_keyboard():
|
||||
"""
|
||||
Руководство по подключению
|
||||
|
||||
Reference in New Issue
Block a user