@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.
@@ -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
- const pos = 4 + (hash[0] & 15);
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
@@ -97,9 +97,7 @@ export const prepareWAMessageMedia = async (message, options) => {
97
97
  ...message,
98
98
  media: message[mediaType]
99
99
  };
100
- if (uploadData.image || uploadData.video) {
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.3.9",
4
- "description": "Enhanced Baileys v7 with fixes for newsletter media uploads, plus support for interactive messages, albums, and additional message types.",
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",
@@ -1,8 +0,0 @@
1
- export class BinaryInfo {
2
- constructor(options?: {});
3
- protocolVersion: number;
4
- sequence: number;
5
- events: any[];
6
- buffer: any[];
7
- }
8
- //# sourceMappingURL=BinaryInfo.d.ts.map
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