init commit

This commit is contained in:
2025-12-10 22:09:31 +09:00
commit b79adf1c69
361 changed files with 47414 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
"""Bot keyboards"""
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
def main_menu_keyboard() -> ReplyKeyboardMarkup:
"""Main menu keyboard"""
return ReplyKeyboardMarkup(
keyboard=[
[
KeyboardButton(text="💰 Новая операция"),
KeyboardButton(text="📊 Аналитика"),
],
[
KeyboardButton(text="👨‍👩‍👧‍👦 Семья"),
KeyboardButton(text="🎯 Цели"),
],
[
KeyboardButton(text="💳 Счета"),
KeyboardButton(text="⚙️ Параметры"),
],
[
KeyboardButton(text="📞 Помощь"),
],
],
resize_keyboard=True,
input_field_placeholder="Выберите действие...",
)
def transaction_type_keyboard() -> InlineKeyboardMarkup:
"""Transaction type selection"""
return InlineKeyboardMarkup(
inline_keyboard=[
[InlineKeyboardButton(text="💸 Расход", callback_data="tx_expense")],
[InlineKeyboardButton(text="💵 Доход", callback_data="tx_income")],
[InlineKeyboardButton(text="🔄 Перевод", callback_data="tx_transfer")],
]
)
def cancel_keyboard() -> InlineKeyboardMarkup:
"""Cancel button"""
return InlineKeyboardMarkup(
inline_keyboard=[
[InlineKeyboardButton(text="❌ Отменить", callback_data="cancel")],
]
)
__all__ = [
"main_menu_keyboard",
"transaction_type_keyboard",
"cancel_keyboard",
]