Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,8 @@ if st.button("Send WhatsApp Message"):
|
|
54 |
else:
|
55 |
# Call the function to send the message
|
56 |
message_sid = send_whatsapp_message(account_sid, auth_token, from_whatsapp, to_whatsapp, content_sid, content_variables)
|
57 |
-
if message_sid.startswith("SM"): #
|
58 |
st.success(f"Message sent successfully! SID: {message_sid}")
|
59 |
else:
|
60 |
st.error(f"Error sending message: {message_sid}")
|
|
|
|
54 |
else:
|
55 |
# Call the function to send the message
|
56 |
message_sid = send_whatsapp_message(account_sid, auth_token, from_whatsapp, to_whatsapp, content_sid, content_variables)
|
57 |
+
if message_sid.startswith(("SM", "MM")): # Accept both SM and MM SIDs
|
58 |
st.success(f"Message sent successfully! SID: {message_sid}")
|
59 |
else:
|
60 |
st.error(f"Error sending message: {message_sid}")
|
61 |
+
|