You've already forked Travel-Agent
feat: Reorganized project, added user registration, throttling middleware, help command, profile command
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user