Sending to broadcast lists
Broadcast lists allow you to send messages to multiple recipients who will receive them as individual chats. Each recipient sees the message as if it was sent directly to them.Broadcast JID format
Broadcast list identifiers follow the format12345678@broadcast, where the numeric prefix is the broadcast list ID.
Sending messages to broadcasts
To send a message to a broadcast list, use thebroadcast: true option:
You can send messages to broadcast lists the same way you send messages to groups and individual chats. The main difference is setting the
broadcast: true option.Query broadcast list information
Retrieve a broadcast list’s name and recipients:Sending status updates (stories)
Status updates (also known as stories) are temporary messages that appear in your contacts’ Status tab and disappear after 24 hours.Status JID
Status updates are sent to the special JIDstatus@broadcast:
Basic status message
Send a text status update:Status with media
Send an image or video as a status update:Status message options
When sending status updates, you can customize the appearance and delivery:Required options
statusJidList
statusJidList
An array of JIDs (phone numbers) of contacts who should receive this status update. Only users in this list will see your status.
broadcast
broadcast
Must be set to
true to enable broadcast mode for status messages.Optional styling options
backgroundColor
backgroundColor
Set a background color for text status updates. Use hex color codes.
font
font
Choose a font style for text status updates. Different numeric values represent different fonts.
Supported message types
You can send various message types as status updates:- Text messages -
extendedTextMessage - Images -
imageMessage - Videos -
videoMessage - Voice messages -
voiceMessage
Complete example
Here’s a complete example combining all the concepts:Limitations
Status updates are only visible to contacts who have your phone number saved and whom you have in your contact list.