feat: Added travel detail, added proccessing message when changing/setting user location, improvements in messages text

This commit is contained in:
ITQ
2024-03-23 16:19:15 +03:00
parent 7b28635f09
commit 40ea9689ab
12 changed files with 202 additions and 26 deletions
+37
View File
@@ -0,0 +1,37 @@
__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=" 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="menu_travels",
),
)
return builder.as_markup()