Spaces:
Build error
Build error
Commit ·
60d9d69
1
Parent(s): 949938b
Fixes
Browse files
app.py
CHANGED
|
@@ -126,7 +126,8 @@ def backgnd_process_message(message):
|
|
| 126 |
response_text = "Great!! Send me your story as the next message, it can be text or audio!!"
|
| 127 |
ONGOING_CONVO[sender_id]['Story'] = "PENDING"
|
| 128 |
else:
|
| 129 |
-
|
|
|
|
| 130 |
response_text = "Sorry, invalid story type, send a valid type"
|
| 131 |
else:
|
| 132 |
logger.warning(f"Unsupported message type: {message_type}")
|
|
|
|
| 126 |
response_text = "Great!! Send me your story as the next message, it can be text or audio!!"
|
| 127 |
ONGOING_CONVO[sender_id]['Story'] = "PENDING"
|
| 128 |
else:
|
| 129 |
+
button_type = message["button_reply"]["id"]
|
| 130 |
+
logger.warning(f"Unsupported button reply: {button_type}")
|
| 131 |
response_text = "Sorry, invalid story type, send a valid type"
|
| 132 |
else:
|
| 133 |
logger.warning(f"Unsupported message type: {message_type}")
|