Announcement mode
Announcement mode restricts who can send messages in the group.Enable announcement mode
Only allow admins to send messages:- Only group admins can send messages
- Regular members can only read messages
- Useful for broadcast groups, official announcements, or communities
Disable announcement mode
Allow everyone to send messages:Announcement mode is reflected in the group metadata as the
announce boolean property.Group info restrictions
Control who can modify group information like display picture, subject, and description.Lock group info
Only allow admins to modify group settings:- Only admins can change the group name
- Only admins can change the group description
- Only admins can change the group display picture
- Regular members can only view this information
Unlock group info
Allow everyone to modify group settings:Setting update function
All group settings are updated using the same function:The group JID
The setting to apply:
'announcement', 'not_announcement', 'locked', or 'unlocked'Ephemeral messages
Ephemeral messages automatically disappear after a set period. This is useful for temporary conversations or privacy-sensitive groups.Enable ephemeral messages
Ephemeral durations
| Time | Seconds | Description |
|---|---|---|
| Remove | 0 | Disable ephemeral messages |
| 24 hours | 86400 | Messages disappear after 24 hours |
| 7 days | 604800 | Messages disappear after 7 days |
| 90 days | 7776000 | Messages disappear after 90 days |
Examples
Enable 24-hour ephemeral messages
Enable 24-hour ephemeral messages
Enable 7-day ephemeral messages
Enable 7-day ephemeral messages
Enable 90-day ephemeral messages
Enable 90-day ephemeral messages
Disable ephemeral messages
Disable ephemeral messages
The ephemeral setting is stored in the group metadata as
ephemeralDuration (in seconds). A value of undefined means ephemeral messages are disabled.Member add mode
Control who can add new participants to the group.Allow all members to add
'all_member_add':
- Any group member can add new participants
- Useful for open, collaborative groups
- Reduces admin workload
Restrict adding to admins only
'admin_add':
- Only group admins can add new participants
- Regular members cannot add anyone
- Provides better control over group membership
The group JID
Either
'admin_add' or 'all_member_add'The member add mode is reflected in the group metadata as the
memberAddMode boolean property (true for all members, false for admins only).Join approval mode
Control whether users who click an invite link can join immediately or need admin approval.Enable join approval
- Users who click an invite link submit a join request
- Admins must approve or reject each request
- Provides better control over who joins
- See join requests for handling requests
Disable join approval
- Users who click an invite link join immediately
- No admin approval required
- Faster group joining process
The group JID
Either
'on' or 'off'The join approval mode is reflected in the group metadata as the
joinApprovalMode boolean property.Common settings configurations
Here are some common group setting configurations for different use cases:Public community group
Public community group
Announcement channel
Announcement channel
Private group with ephemeral messages
Private group with ephemeral messages
Semi-moderated group
Semi-moderated group
Reading current settings
You can check the current settings by fetching group metadata:Best practices
Consider your group's purpose
Choose settings that match your group’s purpose (public community, private chat, announcement channel, etc.)
Start restrictive, then relax
It’s easier to relax restrictions than to impose them after the group has grown
Review settings periodically
As your group evolves, review and adjust settings to match the current needs