@zetagoaurum-socket/wasocket 2.2.2 → 3.1.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.
- package/LICENSE +1 -1
- package/README.md +60 -81
- package/WAProto/GenerateStatics.sh +4 -0
- package/WAProto/WAProto.proto +3344 -0
- package/WAProto/index.d.ts +37016 -0
- package/WAProto/index.js +79296 -118676
- package/WASignalGroup/GroupProtocol.js +1697 -0
- package/WASignalGroup/ciphertext_message.js +16 -0
- package/WASignalGroup/group_cipher.js +120 -0
- package/WASignalGroup/group_session_builder.js +46 -0
- package/WASignalGroup/index.js +5 -0
- package/WASignalGroup/keyhelper.js +21 -0
- package/WASignalGroup/protobufs.js +3 -0
- package/WASignalGroup/queue_job.js +69 -0
- package/WASignalGroup/sender_chain_key.js +50 -0
- package/WASignalGroup/sender_key_distribution_message.js +78 -0
- package/WASignalGroup/sender_key_message.js +92 -0
- package/WASignalGroup/sender_key_name.js +70 -0
- package/WASignalGroup/sender_key_record.js +56 -0
- package/WASignalGroup/sender_key_state.js +129 -0
- package/{lib/Signal/Group/sender-message-key.js → WASignalGroup/sender_message_key.js} +16 -6
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.js +9 -50
- package/lib/Signal/libsignal.js +29 -51
- package/lib/Socket/business.d.ts +2 -3
- package/lib/Socket/chats.d.ts +28 -215
- package/lib/Socket/chats.js +70 -185
- package/lib/Socket/dugong.js +141 -432
- package/lib/Socket/groups.js +23 -20
- package/lib/Socket/index.js +15 -2
- package/lib/Socket/messages-recv.d.ts +55 -56
- package/lib/Socket/messages-recv.js +112 -370
- package/lib/Socket/messages-send.d.ts +2 -3
- package/lib/Socket/messages-send.js +377 -464
- package/lib/Socket/newsletter.js +28 -175
- package/lib/Socket/socket.js +176 -204
- package/lib/Socket/usync.d.ts +3 -3
- package/lib/Types/GroupMetadata.d.ts +0 -1
- package/lib/Types/Newsletter.d.ts +86 -97
- package/lib/Types/Newsletter.js +32 -38
- package/lib/Utils/chat-utils.js +3 -17
- package/lib/Utils/generics.js +31 -68
- package/lib/Utils/history.js +1 -6
- package/lib/Utils/index.js +1 -0
- package/lib/Utils/link-preview.js +2 -4
- package/lib/Utils/messages-media.js +57 -145
- package/lib/Utils/messages.js +305 -89
- package/lib/Utils/rate-limiter.js +55 -0
- package/lib/Utils/signal.js +46 -48
- package/lib/Utils/use-multi-file-auth-state.js +6 -45
- package/lib/Utils/validate-connection.js +65 -91
- package/lib/WABinary/constants.d.ts +24 -27
- package/lib/WABinary/encode.js +123 -160
- package/lib/WABinary/generic-utils.d.ts +0 -2
- package/lib/WABinary/generic-utils.js +36 -124
- package/lib/WABinary/jid-utils.js +26 -5
- package/lib/WAUSync/Fall +1 -0
- package/lib/WAUSync/Protocols/Fal +1 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -9
- package/package.json +100 -105
- package/engine-requirements.js +0 -10
- package/lib/Signal/Group/ciphertext-message.d.ts +0 -9
- package/lib/Signal/Group/ciphertext-message.js +0 -15
- package/lib/Signal/Group/group-session-builder.d.ts +0 -14
- package/lib/Signal/Group/group-session-builder.js +0 -64
- package/lib/Signal/Group/group_cipher.d.ts +0 -17
- package/lib/Signal/Group/group_cipher.js +0 -96
- package/lib/Signal/Group/index.d.ts +0 -11
- package/lib/Signal/Group/index.js +0 -57
- package/lib/Signal/Group/keyhelper.d.ts +0 -10
- package/lib/Signal/Group/keyhelper.js +0 -55
- package/lib/Signal/Group/queue-job.d.ts +0 -1
- package/lib/Signal/Group/queue-job.js +0 -57
- package/lib/Signal/Group/sender-chain-key.d.ts +0 -13
- package/lib/Signal/Group/sender-chain-key.js +0 -34
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +0 -16
- package/lib/Signal/Group/sender-key-distribution-message.js +0 -66
- package/lib/Signal/Group/sender-key-message.d.ts +0 -18
- package/lib/Signal/Group/sender-key-message.js +0 -69
- package/lib/Signal/Group/sender-key-name.d.ts +0 -17
- package/lib/Signal/Group/sender-key-name.js +0 -51
- package/lib/Signal/Group/sender-key-record.d.ts +0 -30
- package/lib/Signal/Group/sender-key-record.js +0 -53
- package/lib/Signal/Group/sender-key-state.d.ts +0 -38
- package/lib/Signal/Group/sender-key-state.js +0 -99
- package/lib/Signal/Group/sender-message-key.d.ts +0 -11
- package/lib/Socket/chats.js.bak +0 -981
- package/lib/Socket/dugong.d.ts +0 -254
- package/lib/Types/USync.d.ts +0 -25
- package/lib/Types/USync.js +0 -2
- package/lib/Utils/anti-crash.js +0 -20
- package/lib/Utils/auto-contact.js +0 -74
- package/lib/Utils/generics.js.bak +0 -433
- package/lib/Utils/validate-connection.js.bak +0 -237
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,102 +1,92 @@
|
|
|
1
|
-
# <div align="center">ZetaGo-Aurum WaSocket</div>
|
|
2
|
-
|
|
3
1
|
<div align="center">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
<img src="https://telegra.ph/file/af55c4dacc2400e2630ce.jpg" alt="ZetaGo-Aurum Banner" width="100%" />
|
|
3
|
+
|
|
4
|
+
# ZetaGo-Aurum - WASOCKET V3.1.0
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/@zetagoaurum-socket/wasocket)
|
|
7
|
+
[](https://github.com/ZetaGo-Aurum/baileys-V1/blob/main/LICENSE)
|
|
8
|
+
[](https://www.npmjs.com/package/@zetagoaurum-socket/wasocket)
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<b>The Ultimate Premium WhatsApp Socket Library</b><br>
|
|
12
|
+
<i>Solusi Terbaik WhatsApp Business Enterprise Grade</i><br>
|
|
13
|
+
Built for Stability, Performance, and Advanced Features.<br>
|
|
14
|
+
Tanpa Embel-Embel, Bersih, Professional, dan Stabil.
|
|
15
|
+
</p>
|
|
14
16
|
</div>
|
|
15
17
|
|
|
16
18
|
---
|
|
17
19
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
**ZetaGo-Aurum WaSocket** is a high-performance, modified version of the Baileys library, engineered for stability, security, and human-like behavior. featuring **Meta Verified** mimicry, **Stylish Console**, and **Auto-Follow** support.
|
|
21
|
-
|
|
22
|
-
## 🚀 Key Features
|
|
20
|
+
## 🇮🇩 Bahasa Indonesia (ID)
|
|
23
21
|
|
|
24
|
-
###
|
|
25
|
-
|
|
26
|
-
* **Persistent Auto-Follow**: Built-in script that keeps your bot subscribed to developer channels (Credits support).
|
|
27
|
-
* **Stylish TUI**: Beautiful colored console output with ASCII art and clear error logs (`ANTI-KILL`).
|
|
28
|
-
* **Auto-Update**: Checks for the latest version on startup.
|
|
22
|
+
### 🚀 Tentang Proyek Ini
|
|
23
|
+
**ZetaGo-Aurum** adalah library WhatsApp socket kelas enterprise yang dirancang ulang total dari basis Baileys legendaris. Kami fokus pada **Kenyamanan**, **Kecepatan**, dan **Keamanan**. Tidak ada fitur "sampah", hanya performa murni.
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
**KENAPA MEMILIH ZETAGO?**
|
|
26
|
+
- **Anti Neko-Neko**: Bersih dari kode bloatware yang tidak perlu.
|
|
27
|
+
- **Enterprise Grade**: Cocok untuk bisnis skala besar.
|
|
28
|
+
- **Aman**: Fitur keamanan tingkat lanjut untuk mencegah banned.
|
|
31
29
|
|
|
32
|
-
###
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
### 🌟 Fitur Unggulan (V3.1.0)
|
|
31
|
+
1. **🛡️ Smart Rate Limiter (Anti-Spam)**: Sistem cerdas yang mencegah pengiriman pesan berlebih (burst) secara otomatis. Menjaga akun Anda tetap aman dari deteksi spam WhatsApp.
|
|
32
|
+
2. **🤖 Hybrid I-AI Badge**: Sistem canggih yang membedakan badge bot. Menggunakan `biz_bot` untuk chat pribadi (aman) dan `supportPayload` untuk grup (anti-drop).
|
|
33
|
+
3. **⚡ Interactive Master**: Dukungan PENUH untuk Button, List, Carousel, Payment, Product, Album, Event, dan Polling lewat engine `dugong.js`.
|
|
34
|
+
4. **🔌 Self-Healing Connection**: Otomatis mendeteksi dan memperbaiki error dekripsi (`Bad MAC`) tanpa memutus koneksi total.
|
|
35
|
+
5. **🎨 Console Mewah**: Tampilan log yang rapi, berwarna, dan informatif.
|
|
37
36
|
|
|
38
|
-
###
|
|
39
|
-
|
|
40
|
-
* **Flexibility**: Works seamlessly with any pairing number or custom key format.
|
|
37
|
+
### 📦 Instalasi
|
|
38
|
+
Mudah diinstal lewat NPM:
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* **Anti-Crash Architecture**: Global error handlers prevent the process from dying.
|
|
48
|
-
* **High Stability**: Optimized for long-running sessions with automatic reconnection logic.
|
|
40
|
+
```bash
|
|
41
|
+
npm install @zetagoaurum-socket/wasocket
|
|
42
|
+
# atau
|
|
43
|
+
yarn add @zetagoaurum-socket/wasocket
|
|
44
|
+
```
|
|
49
45
|
|
|
50
46
|
---
|
|
51
47
|
|
|
52
|
-
##
|
|
48
|
+
## 🇺🇸 English (EN)
|
|
53
49
|
|
|
54
|
-
|
|
50
|
+
### 🚀 About The Project
|
|
51
|
+
**ZetaGo-Aurum** is an Enterprise-Grade WhatsApp socket library, totally re-engineered for modern bot development. We classify this as a "High-Comfort, High-Security" solution. Pure performance, no nonsense.
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# or
|
|
61
|
-
yarn add github:ZetaGo-Aurum/baileys-V1
|
|
62
|
-
# or
|
|
63
|
-
yarn add @zetagoaurum-socket/zetago-aurum-socket
|
|
64
|
-
```
|
|
53
|
+
**WHY ZETAGO?**
|
|
54
|
+
- **Zero Bloat**: Clean code, focused on stability.
|
|
55
|
+
- **Enterprise Grade**: Built for high-throughput business needs.
|
|
56
|
+
- **Secure**: Advanced anti-ban measures baked in.
|
|
65
57
|
|
|
66
|
-
|
|
58
|
+
### 🌟 Key Features (V3.1.0)
|
|
59
|
+
1. **🛡️ Smart Rate Limiter**: Built-in Token Bucket algorithm to smooth out message bursting. Prevents your bot from being flagged as a spammer.
|
|
60
|
+
2. **🤖 Hybrid I-AI Badge**: Smart badging system. Uses `biz_bot` for safe 1-on-1 chats and `supportPayload` for reliable group messages.
|
|
61
|
+
3. **⚡ Interactive Mastery**: Full support for Buttons, Lists, Carousel, Payments, Products, Albums, Events, and Polls via `dugong.js`.
|
|
62
|
+
4. **🔌 Self-Healing Connection**: Automatically recovers from decryption errors (`Bad MAC`) by forcing session resets seamlessly.
|
|
63
|
+
5. **🎨 Stylish Console**: Beautiful startup banner and colored logs for better debugging.
|
|
67
64
|
|
|
68
|
-
|
|
65
|
+
## 🛠️ Usage / Penggunaan
|
|
69
66
|
|
|
70
67
|
```javascript
|
|
71
|
-
const {
|
|
68
|
+
const { makeWASocket, useMultiFileAuthState, DisconnectReason } = require('@zetagoaurum-socket/wasocket');
|
|
72
69
|
|
|
73
70
|
async function connectToWhatsApp() {
|
|
74
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
75
|
-
|
|
71
|
+
const { state, saveCreds } = await useMultiFileAuthState('auth_info');
|
|
72
|
+
|
|
73
|
+
// ZetaGo-Aurum automatically sets a professional browser config
|
|
76
74
|
const sock = makeWASocket({
|
|
77
75
|
auth: state,
|
|
78
|
-
printQRInTerminal:
|
|
79
|
-
// Browser masquerading is handled automatically!
|
|
76
|
+
printQRInTerminal: true
|
|
80
77
|
});
|
|
81
78
|
|
|
82
|
-
if (usePairingCode && !sock.authState.creds.registered) {
|
|
83
|
-
// Pairing code is now robust and handles formatting automatically!
|
|
84
|
-
const code = await sock.requestPairingCode('6281234567890');
|
|
85
|
-
console.log(`Pairing code: ${code}`);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
79
|
sock.ev.on('creds.update', saveCreds);
|
|
89
80
|
|
|
90
81
|
sock.ev.on('connection.update', (update) => {
|
|
91
82
|
const { connection, lastDisconnect } = update;
|
|
92
83
|
if(connection === 'close') {
|
|
93
|
-
const shouldReconnect = lastDisconnect.error?.output?.statusCode !== DisconnectReason.loggedOut;
|
|
94
|
-
console.log('connection closed due to ', lastDisconnect.error, ', reconnecting ', shouldReconnect);
|
|
84
|
+
const shouldReconnect = (lastDisconnect.error)?.output?.statusCode !== DisconnectReason.loggedOut;
|
|
95
85
|
if(shouldReconnect) {
|
|
96
86
|
connectToWhatsApp();
|
|
97
87
|
}
|
|
98
88
|
} else if(connection === 'open') {
|
|
99
|
-
console.log('
|
|
89
|
+
console.log('✅ Connected to WhatsApp / Terhubung ke WhatsApp!');
|
|
100
90
|
}
|
|
101
91
|
});
|
|
102
92
|
}
|
|
@@ -104,22 +94,11 @@ async function connectToWhatsApp() {
|
|
|
104
94
|
connectToWhatsApp();
|
|
105
95
|
```
|
|
106
96
|
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
## 🛡️ Safety & Anti-Ban Details
|
|
110
|
-
|
|
111
|
-
We take account safety seriously. **ZetaGo-Aurum-Socket** implements:
|
|
112
|
-
|
|
113
|
-
1. **Packet Inspection Prevention**: Headers are normalized to look like official clients.
|
|
114
|
-
2. **Rate Limiting**: Built-in delays prevent you from sending messages too fast (the #1 cause of bans).
|
|
115
|
-
3. **Clean Dependencies**: We removed all dubious "peer dependencies" that were present in previous forks.
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
97
|
## 📜 License
|
|
98
|
+
Distributed under the MIT License.
|
|
120
99
|
|
|
121
|
-
|
|
100
|
+
## 📞 Contact
|
|
101
|
+
**ZetaGo-Aurum** - [GitHub](https://github.com/ZetaGo-Aurum)
|
|
122
102
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</div>
|
|
103
|
+
---
|
|
104
|
+
<p align="center">Made with 🔥 by ZetaGo-Aurum Team | Built for Enterprise</p>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
yarn pbjs -t static-module -w commonjs -o ./WAProto/index.js ./WAProto/WAProto.proto;
|
|
2
|
+
yarn pbts -o ./WAProto/index.d.ts ./WAProto/index.js;
|
|
3
|
+
|
|
4
|
+
#protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=env=node,useOptionals=true,forceLong=long --ts_proto_out=. ./src/Binary/WAMessage.proto;
|