Zenaight commited on
Commit
0ff0f7a
Β·
verified Β·
1 Parent(s): 6d9a771

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -123,11 +123,11 @@ def send_welcome_buttons(wa_id: str):
123
  "buttons": [
124
  {
125
  "type": "reply",
126
- "reply": {"id": "open_gallery", "title": "Open Gallery"}
127
  },
128
  {
129
  "type": "reply",
130
- "reply": {"id": "open_camera", "title": "Open Camera"}
131
  }
132
  ]
133
  }
@@ -167,14 +167,14 @@ async def receive_update(req: Request):
167
  if payload == "open_gallery":
168
  send_whatsapp_message(
169
  wa_id,
170
- "πŸ‘ Great! Tap the πŸ“Ž (paper-clip) icon below and choose \"Photo & Video Library\" to select your ID image."
171
  )
172
  elif payload == "open_camera":
173
  send_whatsapp_message(
174
  wa_id,
175
- "πŸ“Έ Okayβ€”tap the πŸ“· (camera) icon next to the text box to take and send a photo of your ID now."
176
  )
177
- return JSONResponse({"status": "handled_button", "payload": payload})
178
 
179
  # TEXT: prompt with Quick-Reply buttons
180
  if msg.get("type") == "text":
 
123
  "buttons": [
124
  {
125
  "type": "reply",
126
+ "reply": {"id": "open_gallery", "title": "Tap πŸ“Ž icon"}
127
  },
128
  {
129
  "type": "reply",
130
+ "reply": {"id": "open_camera", "title": "Tap πŸ“· icon"}
131
  }
132
  ]
133
  }
 
167
  if payload == "open_gallery":
168
  send_whatsapp_message(
169
  wa_id,
170
+ "πŸ‘ Please tap the πŸ“Ž icon below and select \"Photo & Video Library\" to pick your ID image."
171
  )
172
  elif payload == "open_camera":
173
  send_whatsapp_message(
174
  wa_id,
175
+ "πŸ“Έ Please tap the πŸ“· icon next to the text box to take a photo of your ID now."
176
  )
177
+ return JSONResponse({"status":"handled_button"})
178
 
179
  # TEXT: prompt with Quick-Reply buttons
180
  if msg.get("type") == "text":