chore: Add more docs regarding status@broadcast messages

This commit is contained in:
Rajeh Taher
2024-01-19 18:29:29 +02:00
committed by GitHub
parent 985fd3b94d
commit 2f3e839d3b

View File

@@ -844,7 +844,15 @@ Of course, replace ``` xyz ``` with an actual ID.
```
## Broadcast Lists & Stories
**Note:** messages currently cannot be sent to broadcast lists from the MD version.
Messages can be sent to broadcasts & stories.
you need to add the following message options in sendMessage, like this:
```ts
sock.sendMessage(jid, {image: {url: url}, caption: caption}, {backgroundColor : backgroundColor, font : font, statusJidList: statusJidList, broadcast : true})
```
- the message body can be a extendedTextMessage or imageMessage or videoMessage or voiceMessage
- You can add backgroundColor and other options in the message options
- broadcast: true enables broadcast mode
- statusJidList: a list of people that you can get which you need to provide, which are the people who will get this status message.
- You can send messages to broadcast lists the same way you send messages to groups & individual chats.
- Right now, WA Web does not support creating broadcast lists, but you can still delete them.