@d0v3riz/baileys 6.6.0 → 6.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -134,6 +134,8 @@ type SocketConfig = {
134
134
  customUploadHosts: MediaConnInfo['hosts']
135
135
  /** time to wait between sending new retry requests */
136
136
  retryRequestDelayMs: number
137
+ /** max msg retry count */
138
+ maxMsgRetryCount: number
137
139
  /** time to wait for the generation of the next QR in ms */
138
140
  qrTimeout?: number;
139
141
  /** provide an auth state object to maintain the auth state */
@@ -842,7 +844,15 @@ Of course, replace ``` xyz ``` with an actual ID.
842
844
  ```
843
845
  ## Broadcast Lists & Stories
844
846
 
845
- **Note:** messages currently cannot be sent to broadcast lists from the MD version.
847
+ Messages can be sent to broadcasts & stories.
848
+ you need to add the following message options in sendMessage, like this:
849
+ ```ts
850
+ sock.sendMessage(jid, {image: {url: url}, caption: caption}, {backgroundColor : backgroundColor, font : font, statusJidList: statusJidList, broadcast : true})
851
+ ```
852
+ - the message body can be a extendedTextMessage or imageMessage or videoMessage or voiceMessage
853
+ - You can add backgroundColor and other options in the message options
854
+ - broadcast: true enables broadcast mode
855
+ - statusJidList: a list of people that you can get which you need to provide, which are the people who will get this status message.
846
856
 
847
857
  - You can send messages to broadcast lists the same way you send messages to groups & individual chats.
848
858
  - Right now, WA Web does not support creating broadcast lists, but you can still delete them.