Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
| 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>
|