Files
Travel-Agent/app/keyboards/builders.py
T

14 lines
302 B
Python

__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)