feat: Reorganized project, added user registration, throttling middleware, help command, profile command

This commit is contained in:
ITQ
2024-03-20 20:53:43 +03:00
parent 7086a1cf52
commit 6d755490d6
21 changed files with 603 additions and 44 deletions
+37
View File
@@ -0,0 +1,37 @@
__all__ = ("get",)
from aiogram import types
from aiogram.utils.keyboard import InlineKeyboardBuilder
def get():
builder = InlineKeyboardBuilder()
builder.row(
types.InlineKeyboardButton(
text="👤 Change username",
callback_data="profile_change_username",
),
types.InlineKeyboardButton(
text="🔢 Change age",
callback_data="profile_change_age",
),
)
builder.row(
types.InlineKeyboardButton(
text="️ Change bio",
callback_data="profile_change_bio",
),
types.InlineKeyboardButton(
text="📝 Change sex",
callback_data="profile_change_sex",
),
)
builder.row(
types.InlineKeyboardButton(
text="🗺️ Change location",
callback_data="profile_change_location",
),
)
return builder.as_markup()