reminder-bot/bot/keyboards/main_menu.py

23 lines
629 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Main menu keyboard (ReplyKeyboard)."""
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
def get_main_menu_keyboard() -> ReplyKeyboardMarkup:
"""
Get main menu keyboard.
Returns:
ReplyKeyboardMarkup with main menu buttons
"""
keyboard = ReplyKeyboardMarkup(
keyboard=[
[KeyboardButton(text=" Новое напоминание")],
[KeyboardButton(text="📋 Мои напоминания")],
[KeyboardButton(text="⚙️ Настройки")],
],
resize_keyboard=True,
persistent=True,
)
return keyboard