@systemzero/baileys 1.0.4 → 1.0.5
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 +633 -705
- package/lib/Defaults/index.js +9 -3
- package/lib/MB.cjs +8 -0
- package/lib/MessageBuilder.cjs +2509 -0
- package/lib/Socket/messages-send.js +1 -1
- package/lib/Types/Message.js +7 -0
- package/lib/Utils/messages-media.js +4 -3
- package/lib/Utils/messages.js +533 -8
- package/package.json +2 -2
package/lib/Defaults/index.js
CHANGED
|
@@ -78,7 +78,9 @@ export const MEDIA_PATH_MAP = {
|
|
|
78
78
|
'product-catalog-image': '/product/image',
|
|
79
79
|
'md-app-state': '',
|
|
80
80
|
'md-msg-hist': '/mms/md-app-state',
|
|
81
|
-
'biz-cover-photo': '/pps/biz-cover-photo'
|
|
81
|
+
'biz-cover-photo': '/pps/biz-cover-photo',
|
|
82
|
+
'sticker-pack': '/mms/sticker-pack',
|
|
83
|
+
'thumbnail-sticker-pack': '/mms/thumbnail-sticker-pack'
|
|
82
84
|
};
|
|
83
85
|
export const MEDIA_HKDF_KEY_MAPPING = {
|
|
84
86
|
audio: 'Audio',
|
|
@@ -99,7 +101,9 @@ export const MEDIA_HKDF_KEY_MAPPING = {
|
|
|
99
101
|
'product-catalog-image': '',
|
|
100
102
|
'payment-bg-image': 'Payment Background',
|
|
101
103
|
ptv: 'Video',
|
|
102
|
-
'biz-cover-photo': 'Image'
|
|
104
|
+
'biz-cover-photo': 'Image',
|
|
105
|
+
'sticker-pack': 'Sticker Pack',
|
|
106
|
+
'thumbnail-sticker-pack': 'Sticker Pack Thumbnail'
|
|
103
107
|
};
|
|
104
108
|
export const MEDIA_KEYS = Object.keys(MEDIA_PATH_MAP);
|
|
105
109
|
export const MIN_PREKEY_COUNT = 5;
|
|
@@ -112,4 +116,6 @@ export const DEFAULT_CACHE_TTLS = {
|
|
|
112
116
|
CALL_OFFER: 5 * 60, // 5 minutes
|
|
113
117
|
USER_DEVICES: 5 * 60 // 5 minutes
|
|
114
118
|
};
|
|
115
|
-
//# sourceMappingURL=index.js.map
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
120
|
+
export const DONATE_URL = 'https://systemzone.store';
|
|
121
|
+
export const LIBRARY_NAME = '@systemzero/baileys';
|
package/lib/MB.cjs
ADDED