schennu commited on
Commit
a3a8702
·
verified ·
1 Parent(s): 4dd1388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -453,7 +453,8 @@ def create_whatsapp_share_button(activity, index):
453
  group_name = f"Senior Activity - {activity['title'][:20]}"
454
  group_desc = f"Group for coordinating {activity['title']}"
455
  # WhatsApp doesn't have a direct API for creating groups, so we'll use the next best option
456
- group_link = f"https://wa.me/?text={quote(f'I want to create a group named \"{group_name}\" for this activity. Who wants to join?')}"
 
457
  st.markdown(f"Opening WhatsApp to create group. [Click here if it doesn't open automatically]({group_link})")
458
  st.markdown(f"""
459
  <script>
 
453
  group_name = f"Senior Activity - {activity['title'][:20]}"
454
  group_desc = f"Group for coordinating {activity['title']}"
455
  # WhatsApp doesn't have a direct API for creating groups, so we'll use the next best option
456
+ message = f"I want to create a group named '{group_name}' for this activity. Who wants to join?"
457
+ group_link = f"https://wa.me/?text={quote(message)}"
458
  st.markdown(f"Opening WhatsApp to create group. [Click here if it doesn't open automatically]({group_link})")
459
  st.markdown(f"""
460
  <script>