shopbot/bot/dialogs/start.py

23 lines
797 B
Python
Raw Normal View History

2024-12-24 18:08:03 +00:00
from aiogram_dialog import Dialog, Window
from aiogram_dialog.widgets.kbd import Start, Row
from aiogram_dialog.widgets.text import Const, Format
from bot.getters import username_getter
from bot.states import StartSG, ProfileSG, PurchaseAccountsSG
start_dialog = Dialog(
Window(
Format("<b>Привет, {username}!</b>\n"),
Const("Тут ты можешь купить аккаунт по игре Valorant 👇"),
Row(
Start(
Const("🛍️ Купить"),
id="purchase",
state=PurchaseAccountsSG.purchase_accounts,
),
Start(Const("🧑‍💻 Профиль"), id="profile", state=ProfileSG.profile),
),
getter=username_getter,
state=StartSG.start,
)
)