first step

This commit is contained in:
2026-04-05 12:18:33 +03:00
parent 4a03f3e3cf
commit 3992121397
17 changed files with 3367 additions and 0 deletions

24
keyboards/payment.py Normal file
View File

@@ -0,0 +1,24 @@
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
class PaymentKeyboards:
"""Клавиатуры для оплаты"""
@staticmethod
def get_payment_approval_keyboard(user_id: int, tariff: str, days: int) -> InlineKeyboardMarkup:
"""Клавиатура для подтверждения оплаты (в канал)"""
keyboard = InlineKeyboardMarkup(
inline_keyboard=[
[
InlineKeyboardButton(
text="✅ Аппрув",
callback_data=f"payment_approve_{user_id}_{tariff}_{days}"
),
InlineKeyboardButton(
text="❌ Отклонить",
callback_data=f"payment_decline_{user_id}_{tariff}"
)
]
]
)
return keyboard