sanka-baileyss 1.9.4 → 1.9.7
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/WAProto/CompanionReg/CompanionReg.d.ts +6 -0
- package/WAProto/CompanionReg/CompanionReg.js +36 -0
- package/WAProto/CompanionReg/CompanionReg.proto +1 -0
- package/WAProto/E2E/E2E.d.ts +434 -6
- package/WAProto/E2E/E2E.js +1427 -2
- package/WAProto/E2E/E2E.proto +33 -0
- package/WAProto/HistorySync/HistorySync.d.ts +434 -6
- package/WAProto/HistorySync/HistorySync.js +1427 -2
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +434 -6
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1427 -2
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +95 -3
- package/WAProto/StatusAttributions/StatusAttributions.js +270 -2
- package/WAProto/StatusAttributions/StatusAttributions.proto +8 -0
- package/WAProto/Web/Web.d.ts +434 -6
- package/WAProto/Web/Web.js +1427 -2
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.js +1 -1
- package/lib/Socket/business.js +3 -3
- package/lib/Socket/chats.js +7 -7
- package/lib/Socket/groups.d.ts +117 -123
- package/lib/Socket/groups.js +355 -303
- package/lib/Socket/messages-recv.js +31 -30
- package/lib/Socket/messages-send.js +981 -981
- package/lib/Socket/newsletter.js +3 -3
- package/lib/Socket/socket.js +748 -621
- package/lib/Socket/usync.js +3 -3
- package/lib/Store/make-cache-manager-store.js +9 -17
- package/lib/Store/make-in-memory-store.d.ts +2 -2
- package/lib/Store/make-in-memory-store.js +5 -5
- package/lib/Types/Contact.d.ts +35 -24
- package/lib/Types/GroupMetadata.d.ts +70 -47
- package/lib/Types/Message.d.ts +348 -259
- package/lib/Utils/business.js +4 -0
- package/lib/Utils/chat-utils.d.ts +47 -45
- package/lib/Utils/chat-utils.js +731 -723
- package/lib/Utils/decode-wa-message.d.ts +250 -34
- package/lib/Utils/decode-wa-message.js +4 -0
- package/lib/Utils/generics.js +6 -6
- package/lib/Utils/history.d.ts +20 -10
- package/lib/Utils/history.js +88 -72
- package/lib/Utils/messages.js +1657 -1370
- package/lib/Utils/process-message.js +14 -1
- package/lib/index.js +13 -53
- package/package.json +1 -1
- package/lib/Socket/messages-recv.js.bak +0 -1072
package/lib/Socket/newsletter.js
CHANGED
|
@@ -5,8 +5,8 @@ const Utils_1 = require("../Utils")
|
|
|
5
5
|
const WABinary_1 = require("../WABinary")
|
|
6
6
|
const groups_1 = require("./groups")
|
|
7
7
|
const makeNewsletterSocket = (config) => {
|
|
8
|
-
const
|
|
9
|
-
const { authState, signalRepository, query, generateMessageTag } =
|
|
8
|
+
const sock = groups_1.makeGroupsSocket(config)
|
|
9
|
+
const { authState, signalRepository, query, generateMessageTag } = sock
|
|
10
10
|
const encoder = new TextEncoder()
|
|
11
11
|
const newsletterQuery = async (jid, type, content) => (query({
|
|
12
12
|
tag: 'iq',
|
|
@@ -68,7 +68,7 @@ return data
|
|
|
68
68
|
}))
|
|
69
69
|
}
|
|
70
70
|
return {
|
|
71
|
-
...
|
|
71
|
+
...sock,
|
|
72
72
|
newsletterQuery,
|
|
73
73
|
newsletterWMexQuery,
|
|
74
74
|
subscribeNewsletterUpdates: async (jid) => {
|