23 lines
797 B
Python
23 lines
797 B
Python
|
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,
|
||
|
)
|
||
|
)
|