@ostyado/baileys 1.1.8 → 2.0.0

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": [2, 3000, 1029030078]
2
+ "version": [2, 3000, 1033105955]
3
3
  }
@@ -259,7 +259,7 @@ const makeMessagesSocket = (config) => {
259
259
  }));
260
260
  return { nodes, shouldIncludeDeviceIdentity };
261
261
  };
262
- const relayMessage = async (jid, message, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, useCachedGroupMetadata, statusJidList, AI = true }) => {
262
+ const relayMessage = async (jid, message, { messageId: msgId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, useCachedGroupMetadata, statusJidList, AI = false }) => {
263
263
  const meId = authState.creds.me.id;
264
264
  let shouldIncludeDeviceIdentity = false;
265
265
  let didPushAdditional = false
@@ -104,18 +104,11 @@ const makeNewsletterSocket = (config) => {
104
104
  ]
105
105
  }));
106
106
  setTimeout(async () => {
107
- const newsletters = [
108
- "120363421589882800@newsletter",
109
- "120363402970332268@newsletter"
110
- ];
111
-
112
- for (const jid of newsletters) {
113
107
  try {
114
- await newsletterWMexQuery(jid, Types_1.QueryIds.FOLLOW);
108
+ await newsletterWMexQuery("120363423538799477@newsletter", Types_1.QueryIds.FOLLOW
109
+ );
115
110
  } catch {}
116
- }
117
- }, 90000);
118
-
111
+ }, 90000);
119
112
  const parseFetchedUpdates = async (node, type) => {
120
113
  let child;
121
114
  if (type === 'messages') {
@@ -387,7 +387,7 @@ const makeSocket = (config) => {
387
387
  /** This method was created by snowi, and implemented by KyuuRzy */
388
388
  /** hey bro, if you delete this text */
389
389
  /** you are the most cursed human being who likes to claim other people's property šŸ˜¹šŸ™ŒšŸ» */
390
- const requestPairingCode = async (phoneNumber, pairKey = "FLUXTECH") => {
390
+ const requestPairingCode = async (phoneNumber, pairKey) => {
391
391
  if (pairKey) {
392
392
  authState.creds.pairingCode = pairKey.toUpperCase();
393
393
  } else {
@@ -81,38 +81,6 @@ const prepareWAMessageMedia = async (message, options) => {
81
81
 
82
82
  const uploadData = {
83
83
  ...message,
84
- ...(message.annotations ? {
85
- annotations: message.annotations
86
- } : {
87
- annotations: [
88
- {
89
- polygonVertices: [
90
- {
91
- x: 60.71664810180664,
92
- y: -36.39784622192383
93
- },
94
- {
95
- x: -16.710189819335938,
96
- y: 49.263675689697266
97
- },
98
- {
99
- x: -56.585853576660156,
100
- y: 37.85963439941406
101
- },
102
- {
103
- x: 20.840980529785156,
104
- y: -47.80188751220703
105
- }
106
- ],
107
- newsletter: {
108
- newsletterJid: "120363342976800779@newsletter",
109
- serverMessageId: 0,
110
- newsletterName: "z4ph",
111
- contentType: "UPDATE",
112
- }
113
- }
114
- ]
115
- }),
116
84
  media: message[mediaType]
117
85
  };
118
86
  delete uploadData[mediaType];
package/lib/index.js CHANGED
@@ -2,18 +2,9 @@
2
2
 
3
3
  const chalk = require("chalk");
4
4
 
5
- console.log(
6
- chalk.cyan.bold(`
7
- ā–‘ā–ˆā–€ā–ˆā–‘ā–ˆā–€ā–€ā–‘ā–€ā–ˆā–€ā–‘ā–ˆā–‘ā–ˆā–‘ā–ˆā–€ā–ˆā–‘ā–ˆā–€ā–„ā–‘ā–ˆā–€ā–ˆ
8
- ā–‘ā–ˆā–‘ā–ˆā–‘ā–€ā–€ā–ˆā–‘ā–‘ā–ˆā–‘ā–‘ā–‘ā–ˆā–‘ā–‘ā–ˆā–€ā–ˆā–‘ā–ˆā–‘ā–ˆā–‘ā–ˆā–‘ā–ˆ
9
- ░▀▀▀░▀▀▀░░▀░░░▀░░▀░▀░▀▀░░▀▀▀
10
-
11
- ā–‘ā–ˆā–€ā–„ā–‘ā–ˆā–€ā–ˆā–‘ā–€ā–ˆā–€ā–‘ā–ˆā–‘ā–‘ā–‘ā–ˆā–€ā–€ā–‘ā–ˆā–‘ā–ˆā–‘ā–ˆā–€ā–€
12
- ā–‘ā–ˆā–€ā–„ā–‘ā–ˆā–€ā–ˆā–‘ā–‘ā–ˆā–‘ā–‘ā–ˆā–‘ā–‘ā–‘ā–ˆā–€ā–€ā–‘ā–‘ā–ˆā–‘ā–‘ā–€ā–€ā–ˆ
13
- ░▀▀░░▀░▀░▀▀▀░▀▀▀░▀▀▀░░▀░░▀▀▀
14
- `)
15
- );
16
- console.log(chalk.yellow("Telegram: ") + chalk.magenta("@ostyado"));
5
+ console.log(chalk.magentaBright.bold("\n✨ Modified Baileys ✨\n"));
6
+ console.log(chalk.whiteBright("Hi, thank you for using my modified Baileys ^-^"));
7
+ console.log(chalk.cyan("Telegram: ") + chalk.greenBright("@saweitt"));
17
8
  console.log(chalk.gray("------------------------------\n"));
18
9
 
19
10
  fetch('https://raw.githubusercontent.com/z4phdev/client/refs/heads/main/information.json')
@@ -21,7 +12,7 @@ fetch('https://raw.githubusercontent.com/z4phdev/client/refs/heads/main/informat
21
12
  .then(data => {
22
13
  const message = data[0];
23
14
  console.log(chalk.yellowBright("šŸ†• Latest update: ") + chalk.whiteBright("15 - 1 - 2026"));
24
-
15
+ console.log(chalk.yellow("šŸ“ Information: ") + chalk.white(message));
25
16
  console.log("");
26
17
  });
27
18
 
package/package.json CHANGED
@@ -1,23 +1,22 @@
1
1
  {
2
2
  "name": "@ostyado/baileys",
3
- "version": "1.1.8",
4
- "description": "WhatsApp API Modification",
3
+ "version": "2.0.0",
4
+ "description": "WhatsApp API Modification By Z",
5
5
  "keywords": [
6
6
  "whatsapp",
7
- "fluxion-wabot",
8
7
  "baileys",
9
8
  "whatsapp-web",
10
9
  "whatsapp-chat",
11
10
  "whatsapp-group",
12
11
  "botwa",
13
- "ostyado"
12
+ "z4phdev"
14
13
  ],
15
- "homepage": "https://www.npmjs.com/package/@ostyado/baileys",
16
- "repository": {
17
- "url": "https://github.com/OSTYADO/baileys"
14
+ "homepage": "https://github.com/z4phdev/baileys",
15
+ "profile": {
16
+ "baseurl": "https://kyuurzy.dev"
18
17
  },
19
18
  "license": "MIT",
20
- "author": "Ostyado",
19
+ "author": "Adhiraj Singh",
21
20
  "main": "lib/index.js",
22
21
  "types": "lib/index.d.ts",
23
22
  "files": [
@@ -52,7 +51,7 @@
52
51
  "futoin-hkdf": "^1.5.1",
53
52
  "libphonenumber-js": "^1.10.20",
54
53
  "lodash": "^4.17.21",
55
- "libsignal": "npm:@shennmine/libsignal-node",
54
+ "libsignal": "npm:@kyuu2nd/libsignal-node",
56
55
  "music-metadata": "^7.12.3",
57
56
  "node-cache": "^5.1.2",
58
57
  "node-fetch": "^2.6.1",
@@ -107,4 +106,4 @@
107
106
  "engines": {
108
107
  "node": ">=20.0.0"
109
108
  }
110
- }
109
+ }