OnlyBiggg commited on
Commit
838738f
·
1 Parent(s): 9484a7b
Files changed (1) hide show
  1. app/api/routes.py +11 -0
app/api/routes.py CHANGED
@@ -224,6 +224,17 @@ async def booking_trip(request: Request) -> Response:
224
  if trip["route"] and trip["route"]["name"] not in routes_name:
225
  routes_name.append(trip["route"]["name"])
226
  text = [" | ".join(map(str, routes_name))]
 
 
 
 
 
 
 
 
 
 
 
227
  parameters = {
228
  "trip_list": routes_name
229
  }
 
224
  if trip["route"] and trip["route"]["name"] not in routes_name:
225
  routes_name.append(trip["route"]["name"])
226
  text = [" | ".join(map(str, routes_name))]
227
+ payload={
228
+ "richContent": [
229
+ [
230
+ {
231
+ "type": "chips",
232
+ "options": [ {"text": name} for name in routes_name
233
+ ]
234
+ }
235
+ ]
236
+ ]
237
+ }
238
  parameters = {
239
  "trip_list": routes_name
240
  }