From 2f3e839d3b717869b182a3078daf7aa7176ca715 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Fri, 19 Jan 2024 18:29:29 +0200 Subject: [PATCH] chore: Add more docs regarding status@broadcast messages --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ea5ef26..e269b10 100644 --- a/README.md +++ b/README.md @@ -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.