first step
This commit is contained in:
24
keyboards/payment.py
Normal file
24
keyboards/payment.py
Normal 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
|
||||
Reference in New Issue
Block a user