shopbot/bot/dialogs/start.py
2024-12-25 04:30:33 +03:00

24 lines
814 B
Python

from aiogram_dialog import Dialog, Window
from aiogram_dialog.widgets.kbd import Row, Start
from aiogram_dialog.widgets.text import Const, Format
from shopbot.bot.getters import username_getter
from shopbot.bot.states import ProfileSG, PurchaseAccountsSG, StartSG
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,
)
)