You've already forked Travel-Agent
48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
__all__ = ("get",)
|
||
|
||
from aiogram import types
|
||
from aiogram.utils.keyboard import InlineKeyboardBuilder
|
||
|
||
|
||
def get(travel_id: int):
|
||
builder = InlineKeyboardBuilder()
|
||
|
||
builder.row(
|
||
types.InlineKeyboardButton(
|
||
text="π Change title",
|
||
callback_data=f"travel_change_{travel_id}_title",
|
||
),
|
||
types.InlineKeyboardButton(
|
||
text="βΉοΈ Change description",
|
||
callback_data=f"travel_change_{travel_id}_description",
|
||
),
|
||
)
|
||
builder.row(
|
||
types.InlineKeyboardButton(
|
||
text="πΊοΈ Locations",
|
||
callback_data=f"travel_locations_{travel_id}",
|
||
),
|
||
types.InlineKeyboardButton(
|
||
text="π€ Users",
|
||
callback_data=f"travel_users_{travel_id}",
|
||
),
|
||
)
|
||
builder.row(
|
||
types.InlineKeyboardButton(
|
||
text="β Add location",
|
||
callback_data=f"travel_add_{travel_id}_location",
|
||
),
|
||
types.InlineKeyboardButton(
|
||
text="β Add user",
|
||
callback_data=f"travel_add_{travel_id}_user",
|
||
),
|
||
)
|
||
builder.row(
|
||
types.InlineKeyboardButton(
|
||
text="β¬
οΈ",
|
||
callback_data="travels",
|
||
),
|
||
)
|
||
|
||
return builder.as_markup()
|