Files
vol_bot/keyboards.py
2025-04-15 15:35:05 +03:00

12 lines
472 B
Python

from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
def get_subscription_keyboard(subscribed: bool):
if subscribed:
return InlineKeyboardMarkup(inline_keyboard=[
[InlineKeyboardButton(text="❌ Отписаться", callback_data="unsubscribe")]
])
else:
return InlineKeyboardMarkup(inline_keyboard=[
[InlineKeyboardButton(text="✅ Подписаться", callback_data="subscribe")]
])