mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: Add more docs regarding status@broadcast messages
This commit is contained in:
10
README.md
10
README.md
@@ -844,7 +844,15 @@ Of course, replace ``` xyz ``` with an actual ID.
|
|||||||
```
|
```
|
||||||
## Broadcast Lists & Stories
|
## 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.
|
- 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.
|
- Right now, WA Web does not support creating broadcast lists, but you can still delete them.
|
||||||
|
|||||||
Reference in New Issue
Block a user