@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 +11 -1
- package/WAProto/WAProto.proto +473 -8
- package/WAProto/index.d.ts +4793 -22
- package/WAProto/index.js +32548 -19335
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.d.ts +1 -1
- package/lib/Defaults/index.js +7 -3
- package/lib/Socket/business.d.ts +3 -1
- package/lib/Socket/groups.d.ts +2 -0
- package/lib/Socket/groups.js +8 -1
- package/lib/Socket/index.d.ts +3 -1
- package/lib/Socket/messages-recv.d.ts +3 -1
- package/lib/Socket/messages-recv.js +28 -5
- package/lib/Socket/messages-send.d.ts +2 -0
- package/lib/Socket/registration.d.ts +3 -1
- package/lib/Store/make-cache-manager-store.d.ts +1 -2
- package/lib/Types/GroupMetadata.d.ts +2 -0
- package/lib/Types/Socket.d.ts +2 -0
- package/lib/Utils/generics.d.ts +1 -0
- package/lib/Utils/generics.js +1 -0
- package/lib/Utils/messages-media.js +1 -1
- package/lib/Utils/messages.js +2 -1
- package/lib/Utils/process-message.js +11 -3
- package/package.json +4 -4
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
|
-
|
|
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.
|