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
+13
View File
@@ -0,0 +1,13 @@
__all__ = ("profile",)
from aiogram.utils.keyboard import ReplyKeyboardBuilder
def profile(text: str | list):
builder = ReplyKeyboardBuilder()
if isinstance(text, str):
text = [text]
[builder.button(text=txt) for txt in text]
return builder.as_markup(resize_keyboard=True)