@badzz88/baileys 6.0.0 → 7.0.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 CHANGED
@@ -1,7 +1,7 @@
1
- # WhatsApp Baileys
1
+ # WhatsApp Baileys Badzz
2
2
 
3
3
  <p align="center">
4
- <img src="https://a.top4top.io/p_3631lvv7e0.jpg" alt="Thumbnail" />
4
+ <img src="https://g.top4top.io/p_3676rfdq11.jpg" alt="Thumbnail" />
5
5
  </p>
6
6
 
7
7
  WhatsApp Baileys is an open-source library designed to help developers build automation solutions and integrations with WhatsApp efficiently and directly. Using websocket technology without the need for a browser, this library supports a wide range of features such as message management, chat handling, group administration, as well as interactive messages and action buttons for a more dynamic user experience.
@@ -44,7 +44,7 @@ await sock.newsletterId(url)
44
44
  You can see the status of blocked numbers here
45
45
 
46
46
  ```javascript
47
- await sock.checkWhatsApp(jid)
47
+ await sock.checkWhatsApp(target)
48
48
  ```
49
49
 
50
50
  ---
@@ -55,7 +55,7 @@ await sock.checkWhatsApp(jid)
55
55
  Send group status with version 2
56
56
 
57
57
  ```javascript
58
- await sock.sendMessage(jid, {
58
+ await sock.sendMessage(target, {
59
59
  groupStatusMessage: {
60
60
  text: "Hello World"
61
61
  }
@@ -66,7 +66,7 @@ await sock.sendMessage(jid, {
66
66
  Send multiple images in a single album message:
67
67
 
68
68
  ```javascript
69
- await sock.sendMessage(jid, {
69
+ await sock.sendMessage(target, {
70
70
  albumMessage: [
71
71
  { image: cihuy, caption: "Foto pertama" },
72
72
  { image: { url: "URL IMAGE" }, caption: "Foto kedua" }
@@ -78,7 +78,7 @@ await sock.sendMessage(jid, {
78
78
  Create and send WhatsApp event invitations:
79
79
 
80
80
  ```javascript
81
- await sock.sendMessage(jid, {
81
+ await sock.sendMessage(target, {
82
82
  eventMessage: {
83
83
  isCanceled: false,
84
84
  name: "Hello World",
@@ -88,7 +88,7 @@ await sock.sendMessage(jid, {
88
88
  degreesLongitude: 0,
89
89
  name: "rowrrrr"
90
90
  },
91
- joinLink: "https://call.whatsapp.com/video/yumevtc",
91
+ joinLink: "https://call.whatsapp.com/video/badzzne2",
92
92
  startTime: "1763019000",
93
93
  endTime: "1763026200",
94
94
  extraGuestsAllowed: false
@@ -100,7 +100,7 @@ await sock.sendMessage(jid, {
100
100
  Display poll results with vote counts:
101
101
 
102
102
  ```javascript
103
- await sock.sendMessage(jid, {
103
+ await sock.sendMessage(target, {
104
104
  pollResultMessage: {
105
105
  name: "Hello World",
106
106
  pollVotes: [
@@ -121,11 +121,11 @@ await sock.sendMessage(jid, {
121
121
  Send basic interactive messages with copy button functionality:
122
122
 
123
123
  ```javascript
124
- await sock.sendMessage(jid, {
124
+ await sock.sendMessage(target, {
125
125
  interactiveMessage: {
126
126
  header: "Hello World",
127
127
  title: "Hello World",
128
- footer: "telegram: @yumevtc ",
128
+ footer: "telegram: @badzzne2 ",
129
129
  buttons: [
130
130
  {
131
131
  name: "cta_copy",
@@ -144,17 +144,17 @@ await sock.sendMessage(jid, {
144
144
  Send interactive messages with buttons, copy actions, and native flow features:
145
145
 
146
146
  ```javascript
147
- await sock.sendMessage(jid, {
147
+ await sock.sendMessage(target, {
148
148
  interactiveMessage: {
149
149
  header: "Hello World",
150
150
  title: "Hello World",
151
- footer: "telegram: @yumevtc",
151
+ footer: "telegram: @badzzne2",
152
152
  image: { url: "https://example.com/image.jpg" },
153
153
  nativeFlowMessage: {
154
154
  messageParamsJson: JSON.stringify({
155
155
  limited_time_offer: {
156
156
  text: "idk hummmm?",
157
- url: "https://t.me/yumevtc",
157
+ url: "https://t.me/badzzne2",
158
158
  copy_code: "yume",
159
159
  expiration_time: Date.now() * 999
160
160
  },
@@ -167,7 +167,7 @@ await sock.sendMessage(jid, {
167
167
  tap_target_configuration: {
168
168
  title: " X ",
169
169
  description: "bomboclard",
170
- canonical_url: "https://t.me/yumevtc",
170
+ canonical_url: "https://t.me/badzzne2",
171
171
  domain: "shop.example.com",
172
172
  button_index: 0
173
173
  }
@@ -195,7 +195,7 @@ await sock.sendMessage(jid, {
195
195
  highlight_label: "label",
196
196
  rows: [
197
197
  {
198
- title: "@yumevtc",
198
+ title: "@badzzne2",
199
199
  description: "love you",
200
200
  id: "row_2"
201
201
  }
@@ -223,11 +223,11 @@ await sock.sendMessage(jid, {
223
223
  Send interactive messages with thumbnail image and copy button:
224
224
 
225
225
  ```javascript
226
- await sock.sendMessage(jid, {
226
+ await sock.sendMessage(target, {
227
227
  interactiveMessage: {
228
228
  header: "Hello World",
229
229
  title: "Hello World",
230
- footer: "telegram: @yumevtc",
230
+ footer: "telegram: @badzzne2",
231
231
  image: { url: "https://example.com/image.jpg" },
232
232
  buttons: [
233
233
  {
@@ -247,7 +247,7 @@ await sock.sendMessage(jid, {
247
247
  Send product catalog messages with buttons and merchant information:
248
248
 
249
249
  ```javascript
250
- await sock.sendMessage(jid, {
250
+ await sock.sendMessage(target, {
251
251
  productMessage: {
252
252
  title: "Produk Contoh",
253
253
  description: "Ini adalah deskripsi produk",
@@ -276,17 +276,17 @@ await sock.sendMessage(jid, {
276
276
  Send interactive messages with document from buffer (file system) - **Note: Documents only support buffer**:
277
277
 
278
278
  ```javascript
279
- await sock.sendMessage(jid, {
279
+ await sock.sendMessage(target, {
280
280
  interactiveMessage: {
281
281
  header: "Hello World",
282
282
  title: "Hello World",
283
- footer: "telegram: @yumevtc",
283
+ footer: "telegram: @badzzne2",
284
284
  document: fs.readFileSync("./package.json"),
285
285
  mimetype: "application/pdf",
286
- fileName: "yumevtc.pdf",
286
+ fileName: "badzzne2.pdf",
287
287
  jpegThumbnail: fs.readFileSync("./document.jpeg"),
288
288
  contextInfo: {
289
- mentionedJid: [jid],
289
+ mentionedJid: [target],
290
290
  forwardingScore: 777,
291
291
  isForwarded: false
292
292
  },
@@ -296,7 +296,7 @@ await sock.sendMessage(jid, {
296
296
  mediaType: 3,
297
297
  thumbnailUrl: "https://example.com/image.jpg",
298
298
  mediaUrl: " X ",
299
- sourceUrl: "https://t.me/yumevtc",
299
+ sourceUrl: "https://t.me/badzzne2",
300
300
  showAdAttribution: true,
301
301
  renderLargerThumbnail: false
302
302
  },
@@ -305,8 +305,8 @@ await sock.sendMessage(jid, {
305
305
  name: "cta_url",
306
306
  buttonParamsJson: JSON.stringify({
307
307
  display_text: "Telegram",
308
- url: "https://t.me/yumevtc",
309
- merchant_url: "https://t.me/yumevtc"
308
+ url: "https://t.me/badzzne2",
309
+ merchant_url: "https://t.me/badzzne2"
310
310
  })
311
311
  }
312
312
  ]
@@ -318,22 +318,22 @@ await sock.sendMessage(jid, {
318
318
  Send interactive messages with document from buffer (file system) without contextInfo and externalAdReply - **Note: Documents only support buffer**:
319
319
 
320
320
  ```javascript
321
- await sock.sendMessage(jid, {
321
+ await sock.sendMessage(target, {
322
322
  interactiveMessage: {
323
323
  header: "Hello World",
324
324
  title: "Hello World",
325
- footer: "telegram: @yumevtc",
325
+ footer: "telegram: @badzzne2",
326
326
  document: fs.readFileSync("./package.json"),
327
327
  mimetype: "application/pdf",
328
- fileName: "yumevtc.pdf",
328
+ fileName: "badzzne2.pdf",
329
329
  jpegThumbnail: fs.readFileSync("./document.jpeg"),
330
330
  buttons: [
331
331
  {
332
332
  name: "cta_url",
333
333
  buttonParamsJson: JSON.stringify({
334
334
  display_text: "Telegram",
335
- url: "https://t.me/yumevtc",
336
- merchant_url: "https://t.me/yumevtc"
335
+ url: "https://t.me/badzzne2",
336
+ merchant_url: "https://t.me/badzzne2"
337
337
  })
338
338
  }
339
339
  ]
@@ -348,7 +348,7 @@ Send payment request messages with custom background and sticker:
348
348
  let quotedType = m.quoted?.mtype || '';
349
349
  let quotedContent = JSON.stringify({ [quotedType]: m.quoted }, null, 2);
350
350
 
351
- await sock.sendMessage(jid, {
351
+ await sock.sendMessage(target, {
352
352
  requestPaymentMessage: {
353
353
  currency: "IDR",
354
354
  amount: 10000000,
@@ -273,7 +273,7 @@ exports.fetchLatestWaWebVersion = fetchLatestWaWebVersion;
273
273
  * Use to ensure your WA connection is always on the latest version
274
274
  */
275
275
  const fetchLatestBaileysVersion = async (options = {}) => {
276
- const URL = 'https://raw.githubusercontent.com/kiuur/bails/master/src/Defaults/baileys-version.json';
276
+ const URL = 'https://raw.githubusercontent.com/Badzz88/baileys/main/lib/Defaults/baileys-version.json';
277
277
  try {
278
278
  const result = await axios_1.default.get(URL, {
279
279
  ...options,
package/lib/index.js CHANGED
@@ -4,44 +4,26 @@ const chalk = require("chalk");
4
4
 
5
5
  console.log(chalk.gray("-----------------------------------------\n"));
6
6
  console.log(chalk.cyan(`
7
- llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
8
- llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
9
- lllllllllllllllllllllllll!::;,,,,,,;:!llllllllllllllllllllllllll
10
- lllllllllllllllllllll!;. ,;!lllllllllllllllllllll
11
- llllllllllllllllll!;. ........ ....... .;lllllllllllllllllll
12
- llllllllllllllll!, .......... .......... ,lllllllllllllllll
13
- lllllllllllllll; ............ ............. ;lllllllllllllll
14
- lllllllllllll!. ............ ............... .!lllllllllllll
15
- llllllllllll: .............. ................ !llllllllllll
16
- lllllllllll: ............. .. ............. !lllllllllll
17
- llllllllll! ........... ... ..... ............ lllllllllll
18
- llllllllll. .......... ..... ...... .......... ,llllllllll
19
- lllllllll: ......... ...... ....... .......... !lllllllll
20
- lllllllll. ......... ....... ....... ......... ,lllllllll
21
- lllllllll ......... ...... ....... ......... lllllllll
22
- llllllll! ................ .... ..... ......... !llllllll
23
- llllllll: ............... ...... ... ......... !llllllll
24
- llllllll: .............. .... . ......... !llllllll
25
- llllllll! ......... ... ......... lllllllll
26
- lllllllll. ......... .. ........ ,lllllllll
27
- lllllllll; ......... .......... ...... :lllllllll
28
- llllllllll ...... ............. ... ..... .llllllllll
29
- llllllllll: .. .. ..................... ... !llllllllll
30
- lllllllllll; ............. ....... .......... .. :lllllllllll
31
- llllllllllll; .................................. :llllllllllll
32
- lllllllllllll: ............................... :lllllllllllll
33
- llllllllllllll!. ............................ ,lllllllllllllll
34
- llllllllllllllll:. ........................ .:llllllllllllllll
35
- llllllllllllllllll:, .................. ,:llllllllllllllllll
36
- lllllllllllllllllllll;, ........ ,:lllllllllllllllllllll
37
- llllllllllllllllllllllll!:;,. ..,;:!llllllllllllllllllllllll
38
- llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
39
- llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
40
-
7
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢔⣶⠀⠀
8
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⠗⡿⣾⠀⠀
9
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡼⠓⡞⢩⣯⡀⠀
10
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠰⡹⠁⢰⠃⣩⣿⡇⠀
11
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢷⣿⠿⣉⣩⠛⠲⢶⡠⢄⠐⣣⠃⣰⠗⠋⢀⣯⠁⠀
12
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣯⣠⠬⠦⢤⣀⠈⠓⢽⣾⢔⣡⡴⠞⠻⠙⢳⡄
13
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣵⣳⠖⠉⠉⢉⣩⣵⣿⣿⣒⢤⣴⠤⠽⣬⡇
14
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢻⣟⠟⠋⢡⡎⢿⢿⠳⡕⢤⡉⡷⡽⠁
15
+ ⣧⢮⢭⠛⢲⣦⣀⠀⠀⠀⠠⡀⠀⠀⠀⡾⣥⣏⣖⡟⠸⢺⠀⠀⠈⠙⠋⠁⠀⠀
16
+ ⠈⠻⣶⡛⠲⣄⠀⠙⠢⣀⠀⢇⠀⠀⠀⠘⠿⣯⣮⢦⠶⠃⠀⠀⠀⠀⠀⠀⠀⠀
17
+ ⠀⠀⢻⣿⣥⡬⠽⠶⠤⣌⣣⣼⡔⠊⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
18
+ ⠀⠀⢠⣿⣧⣤⡴⢤⡴⣶⣿⣟⢯⡙⠒⠤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
19
+ ⠀⠀⠘⣗⣞⣢⡟⢋⢜⣿⠛⡿⡄⢻⡮⣄⠈⠳⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
20
+ ⠀⠀⠀⠈⠻⠮⠴⠵⢋⣇⡇⣷⢳⡀⢱⡈⢋⠛⣄⣹⣲⡀⠀⠀⠀⠀⠀⠀⠀⠀
21
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣱⡇⣦⢾⣾⠿⠟⠿⠷⠷⣻⠧⠀⠀⠀⠀⠀⠀⠀⠀
22
+ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⠽⠞⠊⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
41
23
  ¤═―— ⎧ 𝐁𝐀𝐃𝐙𝐙 𝐁𝐀𝐈𝐋𝐄𝐘𝐒 ⎭ ⊱―—═¤
42
24
  Information:
43
25
  Developer: @badzzne2
44
- Version: 6.0.0
26
+ Version: 7.0.0
45
27
  Status: Baileys Berhasil Tersambung
46
28
  `));
47
29
  console.log(chalk.gray("--------------------------------------------\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@badzz88/baileys",
3
- "version": "6.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "WhatsApp API Modification By Badzz88",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -61,7 +61,7 @@
61
61
  "ws": "^8.13.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
64
+ "@adiwajshing/eslint-config": "github:Badzz88/eslint-config",
65
65
  "@types/got": "^9.6.11",
66
66
  "@types/jest": "^27.5.1",
67
67
  "@types/node": "^20.0.0",