GuysRGithub commited on
Commit
db58b1f
1 Parent(s): b3734ab
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -69,14 +69,13 @@ def listen():
69
  if request.method == 'POST':
70
  payload = request.json
71
  event = payload['entry'][0]['messaging']
72
- res = "ok"
73
  for x in event:
74
  if is_user_message(x):
75
  text = x['message']['text']
76
  sender_id = x['sender']['id']
77
- res = respond(sender_id, text)
78
 
79
- return res
80
 
81
 
82
  def send_message(recipient_id, text):
 
69
  if request.method == 'POST':
70
  payload = request.json
71
  event = payload['entry'][0]['messaging']
 
72
  for x in event:
73
  if is_user_message(x):
74
  text = x['message']['text']
75
  sender_id = x['sender']['id']
76
+ respond(sender_id, text)
77
 
78
+ return "ok"
79
 
80
 
81
  def send_message(recipient_id, text):