Spaces:
Sleeping
Sleeping
imseldrith
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -77,10 +77,10 @@ def webhook():
|
|
77 |
send_image(sender_id, url)
|
78 |
else:
|
79 |
print("Error: ChatBot response is not a dictionary.")
|
80 |
-
send_message(sender_id,
|
81 |
except Exception as e:
|
82 |
print(f"Exception occurred: {e}")
|
83 |
-
|
84 |
# Mark message as seen
|
85 |
mark_seen(sender_id)
|
86 |
# Set typing off after responding
|
|
|
77 |
send_image(sender_id, url)
|
78 |
else:
|
79 |
print("Error: ChatBot response is not a dictionary.")
|
80 |
+
send_message(sender_id, response_data)
|
81 |
except Exception as e:
|
82 |
print(f"Exception occurred: {e}")
|
83 |
+
|
84 |
# Mark message as seen
|
85 |
mark_seen(sender_id)
|
86 |
# Set typing off after responding
|