Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -497,7 +497,7 @@ with col2:
|
|
497 |
st.rerun()
|
498 |
with col3:
|
499 |
if st.button("💬 Start WhatsApp Bot", disabled=not st.session_state.app_started or st.session_state.bot_started, use_container_width=True):
|
500 |
-
if not all([twilio_account_sid_to_use, twilio_auth_token_to_use,
|
501 |
st.error("Twilio Account SID, Auth Token, Conversation Service SID, and Bot WhatsApp Identity are all required.")
|
502 |
else:
|
503 |
st.session_state.twilio_client = initialize_twilio_client(twilio_account_sid_to_use, twilio_auth_token_to_use)
|
|
|
497 |
st.rerun()
|
498 |
with col3:
|
499 |
if st.button("💬 Start WhatsApp Bot", disabled=not st.session_state.app_started or st.session_state.bot_started, use_container_width=True):
|
500 |
+
if not all([twilio_account_sid_to_use, twilio_auth_token_to_use, twilio_bot_whatsapp_identity_to_use]):
|
501 |
st.error("Twilio Account SID, Auth Token, Conversation Service SID, and Bot WhatsApp Identity are all required.")
|
502 |
else:
|
503 |
st.session_state.twilio_client = initialize_twilio_client(twilio_account_sid_to_use, twilio_auth_token_to_use)
|