masadonline commited on
Commit
b58e86b
·
verified ·
1 Parent(s): 5048dcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"): # Twilio message SIDs start with "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
+