@zetagoaurum-socket/wasocket 3.1.0 → 3.2.7
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 +81 -60
- package/WAProto/index.js +56886 -17506
- package/engine-requirements.js +10 -0
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.js +50 -9
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/ciphertext-message.js +15 -0
- package/lib/Signal/Group/group-session-builder.d.ts +14 -0
- package/lib/Signal/Group/group-session-builder.js +64 -0
- package/lib/Signal/Group/group_cipher.d.ts +17 -0
- package/lib/Signal/Group/group_cipher.js +96 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/index.js +57 -0
- package/lib/Signal/Group/keyhelper.d.ts +10 -0
- package/lib/Signal/Group/keyhelper.js +55 -0
- package/lib/Signal/Group/queue-job.d.ts +1 -0
- package/lib/Signal/Group/queue-job.js +57 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
- package/lib/Signal/Group/sender-chain-key.js +34 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
- package/lib/Signal/Group/sender-key-message.d.ts +18 -0
- package/lib/Signal/Group/sender-key-message.js +69 -0
- package/lib/Signal/Group/sender-key-name.d.ts +17 -0
- package/lib/Signal/Group/sender-key-name.js +51 -0
- package/lib/Signal/Group/sender-key-record.d.ts +30 -0
- package/lib/Signal/Group/sender-key-record.js +53 -0
- package/lib/Signal/Group/sender-key-state.d.ts +38 -0
- package/lib/Signal/Group/sender-key-state.js +99 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/{WASignalGroup/sender_message_key.js → lib/Signal/Group/sender-message-key.js} +6 -16
- package/lib/Signal/libsignal.js +51 -29
- package/lib/Socket/business.d.ts +3 -2
- package/lib/Socket/chats.d.ts +215 -28
- package/lib/Socket/chats.js +185 -70
- package/lib/Socket/chats.js.bak +981 -0
- package/lib/Socket/dugong.d.ts +254 -0
- package/lib/Socket/dugong.js +432 -141
- package/lib/Socket/groups.js +20 -23
- package/lib/Socket/index.js +2 -15
- package/lib/Socket/messages-recv.d.ts +56 -55
- package/lib/Socket/messages-recv.js +370 -112
- package/lib/Socket/messages-send.d.ts +3 -2
- package/lib/Socket/messages-send.js +464 -377
- package/lib/Socket/newsletter.js +175 -28
- package/lib/Socket/socket.js +204 -176
- package/lib/Socket/usync.d.ts +3 -3
- package/lib/Types/GroupMetadata.d.ts +1 -0
- package/lib/Types/Newsletter.d.ts +97 -86
- package/lib/Types/Newsletter.js +38 -32
- package/lib/Types/USync.d.ts +25 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Utils/anti-crash.js +20 -0
- package/lib/Utils/auto-contact.js +74 -0
- package/lib/Utils/chat-utils.js +17 -3
- package/lib/Utils/generics.js +68 -31
- package/lib/Utils/generics.js.bak +433 -0
- package/lib/Utils/history.js +6 -1
- package/lib/Utils/index.js +0 -1
- package/lib/Utils/link-preview.js +4 -2
- package/lib/Utils/messages-media.js +145 -57
- package/lib/Utils/messages.js +89 -305
- package/lib/Utils/signal.js +48 -46
- package/lib/Utils/use-multi-file-auth-state.js +45 -6
- package/lib/Utils/validate-connection.js +91 -65
- package/lib/Utils/validate-connection.js.bak +237 -0
- package/lib/WABinary/constants.d.ts +27 -24
- package/lib/WABinary/encode.js +160 -123
- package/lib/WABinary/generic-utils.d.ts +2 -0
- package/lib/WABinary/generic-utils.js +124 -36
- package/lib/WABinary/jid-utils.js +5 -26
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +9 -0
- package/package.json +105 -100
- package/WAProto/GenerateStatics.sh +0 -4
- package/WAProto/WAProto.proto +0 -3344
- package/WAProto/index.d.ts +0 -37016
- package/WASignalGroup/GroupProtocol.js +0 -1697
- package/WASignalGroup/ciphertext_message.js +0 -16
- package/WASignalGroup/group_cipher.js +0 -120
- package/WASignalGroup/group_session_builder.js +0 -46
- package/WASignalGroup/index.js +0 -5
- package/WASignalGroup/keyhelper.js +0 -21
- package/WASignalGroup/protobufs.js +0 -3
- package/WASignalGroup/queue_job.js +0 -69
- package/WASignalGroup/sender_chain_key.js +0 -50
- package/WASignalGroup/sender_key_distribution_message.js +0 -78
- package/WASignalGroup/sender_key_message.js +0 -92
- package/WASignalGroup/sender_key_name.js +0 -70
- package/WASignalGroup/sender_key_record.js +0 -56
- package/WASignalGroup/sender_key_state.js +0 -129
- package/lib/Utils/rate-limiter.js +0 -55
- package/lib/WAUSync/Fall +0 -1
- package/lib/WAUSync/Protocols/Fal +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,92 +1,102 @@
|
|
|
1
|
+
# <div align="center">ZetaGo-Aurum WaSocket</div>
|
|
2
|
+
|
|
1
3
|
<div align="center">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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>
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
**The Ultimate WhatsApp Socket Connection Library**
|
|
10
|
+
*Premium. Secure. Stylish. Meta Verified.*
|
|
11
|
+
|
|
12
|
+
[Features](#features) • [Installation](#installation) • [Usage](#usage) • [Safety](#safety)
|
|
13
|
+
|
|
16
14
|
</div>
|
|
17
15
|
|
|
18
16
|
---
|
|
19
17
|
|
|
20
|
-
##
|
|
18
|
+
## 🌟 Introduction
|
|
21
19
|
|
|
22
|
-
|
|
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.
|
|
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.
|
|
24
21
|
|
|
25
|
-
|
|
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.
|
|
22
|
+
## 🚀 Key Features
|
|
29
23
|
|
|
30
|
-
###
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
5. **🎨 Console Mewah**: Tampilan log yang rapi, berwarna, dan informatif.
|
|
24
|
+
### 💎 **Exclusive Features**
|
|
25
|
+
* **Meta Verified Fake**: Automatically injects "Enterprise" and "Verified" attributes into messages, making your bot look like a verified business.
|
|
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.
|
|
36
29
|
|
|
37
|
-
|
|
38
|
-
Mudah diinstal lewat NPM:
|
|
30
|
+
## 🚀 Key Features
|
|
39
31
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
### 🛡️ **Unmatched Security (Anti-Ban)**
|
|
33
|
+
* **Browser Masquerading**: Identifies as a legitimate Chrome browser on Windows (`Windows`, `Chrome`, `22.0.0.0`) instead of a generic bot signature.
|
|
34
|
+
* **Traffic Jitter**: Implemented randomized timing for "keep-alive" pings (1-6s jitter) to disrupt robotic traffic pattern analysis.
|
|
35
|
+
* **Human Latency**: Increased default timeouts (`connectTimeoutMs: 60s`) to mimic human network behavior.
|
|
36
|
+
* **Trust Score**: Enabled `syncFullHistory` and `generateHighQualityLinkPreview` to behave more like a legitimate "Companion" device.
|
|
37
|
+
|
|
38
|
+
### 🔗 **Robust Custom Pairing**
|
|
39
|
+
* **Universal Compatibility**: Custom pairing code input is now auto-sanitized (removes non-alphanumeric chars) and normalized.
|
|
40
|
+
* **Flexibility**: Works seamlessly with any pairing number or custom key format.
|
|
41
|
+
|
|
42
|
+
### 🤖 **AI-Enhanced Humanization**
|
|
43
|
+
* **Smart Jitter**: Every packet is sent with micro-randomized delays to mimic human interaction.
|
|
44
|
+
* **Clean Fingerprint**: Removed all legacy tracking codes and "bot" markers.
|
|
45
|
+
|
|
46
|
+
### ⚡ **Professional Performance**
|
|
47
|
+
* **Anti-Crash Architecture**: Global error handlers prevent the process from dying.
|
|
48
|
+
* **High Stability**: Optimized for long-running sessions with automatic reconnection logic.
|
|
45
49
|
|
|
46
50
|
---
|
|
47
51
|
|
|
48
|
-
##
|
|
52
|
+
## 📦 Installation
|
|
49
53
|
|
|
50
|
-
|
|
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.
|
|
54
|
+
Install the package directly from your project:
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
```bash
|
|
57
|
+
npm install @zetagoaurum-socket/wasocket
|
|
58
|
+
# or install directly from GitHub (Recommended if NPM fails)
|
|
59
|
+
npm install github:ZetaGo-Aurum/baileys-V1
|
|
60
|
+
# or
|
|
61
|
+
yarn add github:ZetaGo-Aurum/baileys-V1
|
|
62
|
+
# or
|
|
63
|
+
yarn add @zetagoaurum-socket/zetago-aurum-socket
|
|
64
|
+
```
|
|
57
65
|
|
|
58
|
-
|
|
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.
|
|
66
|
+
## 🛠️ Usage
|
|
64
67
|
|
|
65
|
-
|
|
68
|
+
Simply import `makeWASocket` exactly as you would with standard Baileys. The enhancements work automagically in the background.
|
|
66
69
|
|
|
67
70
|
```javascript
|
|
68
|
-
const { makeWASocket, useMultiFileAuthState
|
|
71
|
+
const { default: makeWASocket, useMultiFileAuthState } = require('@zetagoaurum-socket/zetago-aurum-socket');
|
|
69
72
|
|
|
70
73
|
async function connectToWhatsApp() {
|
|
71
|
-
const { state, saveCreds } = await useMultiFileAuthState('
|
|
72
|
-
|
|
73
|
-
// ZetaGo-Aurum automatically sets a professional browser config
|
|
74
|
+
const { state, saveCreds } = await useMultiFileAuthState('auth_info_baileys');
|
|
75
|
+
|
|
74
76
|
const sock = makeWASocket({
|
|
75
77
|
auth: state,
|
|
76
|
-
printQRInTerminal:
|
|
78
|
+
printQRInTerminal: !usePairingCode, // Set to false if using pairing code
|
|
79
|
+
// Browser masquerading is handled automatically!
|
|
77
80
|
});
|
|
78
81
|
|
|
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
|
+
|
|
79
88
|
sock.ev.on('creds.update', saveCreds);
|
|
80
89
|
|
|
81
90
|
sock.ev.on('connection.update', (update) => {
|
|
82
91
|
const { connection, lastDisconnect } = update;
|
|
83
92
|
if(connection === 'close') {
|
|
84
|
-
const shouldReconnect =
|
|
93
|
+
const shouldReconnect = lastDisconnect.error?.output?.statusCode !== DisconnectReason.loggedOut;
|
|
94
|
+
console.log('connection closed due to ', lastDisconnect.error, ', reconnecting ', shouldReconnect);
|
|
85
95
|
if(shouldReconnect) {
|
|
86
96
|
connectToWhatsApp();
|
|
87
97
|
}
|
|
88
98
|
} else if(connection === 'open') {
|
|
89
|
-
console.log('
|
|
99
|
+
console.log('opened connection');
|
|
90
100
|
}
|
|
91
101
|
});
|
|
92
102
|
}
|
|
@@ -94,11 +104,22 @@ async function connectToWhatsApp() {
|
|
|
94
104
|
connectToWhatsApp();
|
|
95
105
|
```
|
|
96
106
|
|
|
97
|
-
|
|
98
|
-
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 🛡️ Safety & Anti-Ban Details
|
|
110
|
+
|
|
111
|
+
We take account safety seriously. **ZetaGo-Aurum-Socket** implements:
|
|
99
112
|
|
|
100
|
-
|
|
101
|
-
**
|
|
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.
|
|
102
116
|
|
|
103
117
|
---
|
|
104
|
-
|
|
118
|
+
|
|
119
|
+
## 📜 License
|
|
120
|
+
|
|
121
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
122
|
+
|
|
123
|
+
<div align="center">
|
|
124
|
+
<sub>Built with ❤️ by the ZetaGo Team</sub>
|
|
125
|
+
</div>
|