@kaels/casileys 0.3.9 → 0.4.1
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 +408 -1595
- package/lib/Utils/generics.js +2 -3
- package/lib/Utils/messages.js +2 -4
- package/package.json +2 -2
- package/lib/WAM/WAM/BinaryInfo.d.ts +0 -8
- /package/lib/WAM/{WAM/BinaryInfo.d.ts.map → BinaryInfo.d.ts.map} +0 -0
- /package/lib/WAM/{WAM/BinaryInfo.js → BinaryInfo.js} +0 -0
- /package/lib/WAM/{WAM/BinaryInfo.js.map → BinaryInfo.js.map} +0 -0
- /package/lib/WAM/{WAM/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/WAM/{WAM/constants.d.ts.map → constants.d.ts.map} +0 -0
- /package/lib/WAM/{WAM/constants.js → constants.js} +0 -0
- /package/lib/WAM/{WAM/constants.js.map → constants.js.map} +0 -0
- /package/lib/WAM/{WAM/encode.d.ts → encode.d.ts} +0 -0
- /package/lib/WAM/{WAM/encode.d.ts.map → encode.d.ts.map} +0 -0
- /package/lib/WAM/{WAM/encode.js → encode.js} +0 -0
- /package/lib/WAM/{WAM/encode.js.map → encode.js.map} +0 -0
- /package/lib/WAM/{WAM/index.d.ts → index.d.ts} +0 -0
- /package/lib/WAM/{WAM/index.d.ts.map → index.d.ts.map} +0 -0
- /package/lib/WAM/{WAM/index.js → index.js} +0 -0
- /package/lib/WAM/{WAM/index.js.map → index.js.map} +0 -0
package/lib/Utils/generics.js
CHANGED
|
@@ -145,8 +145,7 @@ export const generateMessageIDV2 = (userId) => {
|
|
|
145
145
|
const hash = createHash('sha256').update(data).digest();
|
|
146
146
|
const hex = hash.toString('hex', 0, 9).toUpperCase();
|
|
147
147
|
const baseId = '3EB0' + hex;
|
|
148
|
-
|
|
149
|
-
return baseId.slice(0, pos) + 'STARFALL' + baseId.slice(pos);
|
|
148
|
+
return baseId;
|
|
150
149
|
};
|
|
151
150
|
// generate a random ID to attach to a message
|
|
152
151
|
export const generateMessageID = () => '3EB0' + randomBytes(18).toString('hex').toUpperCase();
|
|
@@ -392,4 +391,4 @@ export function bytesToCrockford(buffer) {
|
|
|
392
391
|
export function encodeNewsletterMessage(message) {
|
|
393
392
|
return proto.Message.encode(message).finish();
|
|
394
393
|
}
|
|
395
|
-
//# sourceMappingURL=generics.js.map
|
|
394
|
+
//# sourceMappingURL=generics.js.map
|
package/lib/Utils/messages.js
CHANGED
|
@@ -97,9 +97,7 @@ export const prepareWAMessageMedia = async (message, options) => {
|
|
|
97
97
|
...message,
|
|
98
98
|
media: message[mediaType]
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
uploadData.annotations = mediaAnnotation;
|
|
102
|
-
}
|
|
100
|
+
|
|
103
101
|
delete uploadData[mediaType];
|
|
104
102
|
// check if cacheable + generate cache key
|
|
105
103
|
const cacheableKey = typeof uploadData.media === 'object' &&
|
|
@@ -1871,4 +1869,4 @@ export const shouldIncludeBizBinaryNode = (message) => {
|
|
|
1871
1869
|
message.listMessage ||
|
|
1872
1870
|
hasValidInteractive);
|
|
1873
1871
|
};
|
|
1874
|
-
//# sourceMappingURL=messages.js.map
|
|
1872
|
+
//# sourceMappingURL=messages.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaels/casileys",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "Modify Baileys For Bot WhatsApp Changli-MD",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|