aiozab/utils/show_settings_menu.py
2025-02-23 12:05:49 +05:00

14 lines
723 B
Python

from aiogram.types import KeyboardButton, ReplyKeyboardMarkup
def show_settings_menu(chat_id):
button_subscribe = KeyboardButton(text="Подписаться")
button_unsubscribe = KeyboardButton(text="Отписаться")
button_subscription = KeyboardButton(text="Мои подписки")
button_active_regions = KeyboardButton(text="Активные регионы")
button_cancel = KeyboardButton(text="Назад")
button_row_1 = [button_subscribe,button_unsubscribe,button_subscription]
button_row_2 = [button_active_regions]
button_row_3 = [button_cancel]
markup = ReplyKeyboardMarkup(keyboard=[button_row_1,button_row_2,button_row_3], resize_keyboard=True)
return markup