Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ async def ask(request: Request):
|
|
| 63 |
return {"status": "ignored"}
|
| 64 |
|
| 65 |
# Handle special bot resume command
|
| 66 |
-
if sender_role == "agent" and message_content.lower() == "
|
| 67 |
stop_reply_conversations.discard(conversation_id)
|
| 68 |
print(f"ℹ️ Bot resumed for conversation {conversation_id}")
|
| 69 |
await send_chatwoot_message(conversation_id, "Bot resumed and will reply to users now.")
|
|
|
|
| 63 |
return {"status": "ignored"}
|
| 64 |
|
| 65 |
# Handle special bot resume command
|
| 66 |
+
if sender_role == "agent" and message_content.lower() == "#botresume":
|
| 67 |
stop_reply_conversations.discard(conversation_id)
|
| 68 |
print(f"ℹ️ Bot resumed for conversation {conversation_id}")
|
| 69 |
await send_chatwoot_message(conversation_id, "Bot resumed and will reply to users now.")
|