@zetagoaurum-socket/decagramton 3.2.5 → 3.3.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/README.md +55 -93
- package/WAProto/index.js +56886 -17506
- package/engine-requirements.js +91 -0
- package/lib/Defaults/index.js +32 -2
- 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 +166 -70
- 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 +367 -131
- package/lib/Socket/messages-send.d.ts +3 -2
- package/lib/Socket/messages-send.js +423 -380
- package/lib/Socket/newsletter.js +120 -21
- package/lib/Socket/socket.js +156 -148
- 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 +31 -0
- package/lib/Utils/chat-utils.js +6 -1
- package/lib/Utils/generics.js +66 -34
- package/lib/Utils/history.js +6 -1
- package/lib/Utils/index.js +0 -1
- package/lib/Utils/link-preview.js +1 -1
- package/lib/Utils/messages-media.js +145 -57
- package/lib/Utils/messages.js +92 -306
- package/lib/Utils/signal.js +48 -46
- package/lib/Utils/use-multi-file-auth-state.js +45 -6
- package/lib/Utils/validate-connection.js +89 -65
- 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 +56 -0
- package/package.json +113 -101
- package/LICENSE +0 -21
- 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/decagramton.jpg +0 -0
- package/lib/Utils/rate-limiter.js +0 -55
- package/lib/WAUSync/Fall +0 -1
- package/lib/WAUSync/Protocols/Fal +0 -1
package/README.md
CHANGED
|
@@ -1,113 +1,75 @@
|
|
|
1
|
+
# <div align="center">ZetaGo-Aurum Decagramton</div>
|
|
2
|
+
|
|
1
3
|
<div align="center">
|
|
2
|
-
<img src="./decagramton.jpg" alt="Decagramton Banner" width="100%" />
|
|
3
|
-
|
|
4
|
-
# DECAGRAMTON - By ZetaGo-Aurum
|
|
5
|
-
|
|
6
|
-
[](https://www.npmjs.com/package/@zetagoaurum-socket/decagramton)
|
|
7
|
-
[](https://github.com/ZetaGo-Aurum/baileys-V1/blob/main/LICENSE)
|
|
8
|
-
|
|
9
|
-
<p align="center">
|
|
10
|
-
<b>The Ten-Pointed Star of Perfection</b><br>
|
|
11
|
-
<i>10 Titik Kesempurnaan Socket WhatsApp Enterprise</i><br>
|
|
12
|
-
<b>Product</b>: Decagramton | <b>Author</b>: ZetaGo-Aurum
|
|
13
|
-
</p>
|
|
14
|
-
</div>
|
|
15
4
|
|
|
16
|
-
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
**The Ten-Pointed Star of Speed**
|
|
10
|
+
*Lightweight. Powerful. Perfection.*
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
**DECAGRAMTON** bukan sekadar library. Ini adalah manifestasi dari **10 Titik Kesempurnaan** (The 10 Points). Kami merancang library ini untuk memenuhi standar Enterprise tertinggi: **Kenyamanan**, **Kecepatan**, **Keamanan**, dan **Stabilitas**.
|
|
12
|
+
[Installation](#installation) • [The 10 Features](#the-10-features) • [Contributors](#contributors)
|
|
22
13
|
|
|
23
|
-
|
|
24
|
-
Sesuai lambang Decagram, library ini memiliki 10 kekuatan utama:
|
|
14
|
+
</div>
|
|
25
15
|
|
|
26
|
-
|
|
27
|
-
2. **🔌 Auto-Healing Socket (Stability)**: Koneksi putus? Decagramton menyambung kembali otomatis dalam milidetik.
|
|
28
|
-
3. **⚡ Lightning Fast (Speed)**: Kode yang dibersihkan dari "bloatware" untuk latensi ultra-rendah.
|
|
29
|
-
4. **🤖 Hybrid I-AI (Intelligence)**: Badge pintar yang membedakan bot Private (`biz_bot`) dan Group (`supportPayload`).
|
|
30
|
-
5. **🎮 Decagram Interactive (Interactivity)**: Dukungan penuh Button, List, Carousel, Payment, dan Polling via `dugong.js`.
|
|
31
|
-
6. **🧱 Anti-Crash System (Reliability)**: Proteksi lapis ganda terhadap error runtime (seperti Axios 400).
|
|
32
|
-
7. **💾 Multi-Session Store (Scalability)**: Manajemen sesi file yang efisien untuk skala besar.
|
|
33
|
-
8. **📱 Multi-Device Support (Compatibility)**: Mendukung penuh arsitektur WA Multi-Device terbaru.
|
|
34
|
-
9. **🛠️ Developer Comfort (Usability)**: Dokumentasi Bilingual (ID/EN) dan API yang mudah dipahami.
|
|
35
|
-
10. **🎨 Exclusive Console (Beauty)**: Banner startup "Decagramton" yang mewah dan log yang indah.
|
|
16
|
+
---
|
|
36
17
|
|
|
37
|
-
|
|
18
|
+
## 🚀 Installation
|
|
38
19
|
|
|
39
|
-
**Via NPM (Recommended):**
|
|
40
20
|
```bash
|
|
41
21
|
npm install @zetagoaurum-socket/decagramton
|
|
42
|
-
# atau
|
|
43
|
-
yarn add @zetagoaurum-socket/decagramton
|
|
44
22
|
```
|
|
45
23
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 🌟 The 10 Features of Decagramton
|
|
27
|
+
|
|
28
|
+
Decagramton is built on the philosophy of 10 points of perfection, ensuring a lightweight yet powerful WhatsApp socket experience.
|
|
29
|
+
|
|
30
|
+
### 1. ⚡ Lightweight Core
|
|
31
|
+
Optimized codebase stripped of unnecessary bloatware, ensuring maximum performance and low memory footprint.
|
|
32
|
+
|
|
33
|
+
### 2. 🛡️ Anti-Kill Protection
|
|
34
|
+
Robust error handling system that prevents the process from crashing due to unhandled exceptions or rejections.
|
|
50
35
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
36
|
+
### 3. ✅ Meta Verified Mimicry
|
|
37
|
+
Automatically injects "Enterprise" and "Verified" attributes into message payloads to mimic official business accounts and reduce ban risks.
|
|
38
|
+
|
|
39
|
+
### 4. 🚀 Fast Connect
|
|
40
|
+
Enhanced connection logic for rapid authentication and socket establishment.
|
|
41
|
+
|
|
42
|
+
### 5. 📱 Multi-Device Support
|
|
43
|
+
Full compatibility with the latest WhatsApp Multi-Device (MD) architecture.
|
|
44
|
+
|
|
45
|
+
### 6. 🔐 Custom Pairing
|
|
46
|
+
Supports both automatic QR scanning and custom pairing code methods for flexible login.
|
|
47
|
+
|
|
48
|
+
### 7. 💬 Interactive Messages
|
|
49
|
+
Native support for interactive buttons, list messages, and dynamic menus.
|
|
50
|
+
|
|
51
|
+
### 8. 🔄 Stable Sessions
|
|
52
|
+
Advanced session management to ensure long-term connectivity without frequent logouts.
|
|
53
|
+
|
|
54
|
+
### 9. 🔒 Secure Encryption
|
|
55
|
+
Implements standard Signal protocol encryption for secure end-to-end communication.
|
|
56
|
+
|
|
57
|
+
### 10. 🎨 Stylish TUI
|
|
58
|
+
Beautiful text-based user interface with colored logs and the signature Decagramton banner.
|
|
57
59
|
|
|
58
60
|
---
|
|
59
61
|
|
|
60
|
-
##
|
|
61
|
-
|
|
62
|
-
### 🚀 The DECAGRAMTON Philosophy
|
|
63
|
-
**DECAGRAMTON** is built upon the "10 Points of Perfection". It is an Enterprise-Grade library designed to deliver the ultimate balance of **Comfort**, **Speed**, **Security**, and **Stability**.
|
|
64
|
-
|
|
65
|
-
### 🌟 THE 10 STARS (Key Features)
|
|
66
|
-
Representing the 10 points of our star:
|
|
67
|
-
|
|
68
|
-
1. **🛡️ Smart Rate Limiter (Security)**: Intelligent "Anti-Neko-Neko" engine to prevent spam flags.
|
|
69
|
-
2. **🔌 Auto-Healing Socket (Stability)**: Instantly recovers from connection drops or `Bad MAC` errors.
|
|
70
|
-
3. **⚡ Lightning Fast (Speed)**: Zero-bloat architecture for maximum throughput.
|
|
71
|
-
4. **🤖 Hybrid I-AI (Intelligence)**: Smart badge switching for Private vs Group chats.
|
|
72
|
-
5. **🎮 Decagram Interactive (Interactivity)**: Full support for Buttons, Lists, Polls, and more via `dugong.js`.
|
|
73
|
-
6. **🧱 Anti-Crash System (Reliability)**: Built-in safeguards against common runtime crashes.
|
|
74
|
-
7. **💾 Multi-Session Store (Scalability)**: Optimized file-based session management.
|
|
75
|
-
8. **📱 Multi-Device Support (Compatibility)**: Fully compatible with modern MD protocols.
|
|
76
|
-
9. **🛠️ Developer Comfort (Usability)**: Clear API and Bilingual Documentation.
|
|
77
|
-
10. **🎨 Exclusive Console (Beauty)**: Stunning startup banner and styled logs.
|
|
78
|
-
|
|
79
|
-
## 🛠️ Usage / Penggunaan
|
|
80
|
-
|
|
81
|
-
```javascript
|
|
82
|
-
const { makeWASocket, useMultiFileAuthState } = require('@zetagoaurum-socket/decagramton');
|
|
83
|
-
|
|
84
|
-
async function connectToWhatsApp() {
|
|
85
|
-
const { state, saveCreds } = await useMultiFileAuthState('auth_info');
|
|
86
|
-
|
|
87
|
-
// Decagramton: The 10-Point Star of Speed
|
|
88
|
-
const sock = makeWASocket({
|
|
89
|
-
auth: state,
|
|
90
|
-
printQRInTerminal: true
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
sock.ev.on('creds.update', saveCreds);
|
|
94
|
-
|
|
95
|
-
sock.ev.on('connection.update', (update) => {
|
|
96
|
-
const { connection } = update;
|
|
97
|
-
if(connection === 'open') {
|
|
98
|
-
console.log('✨ Connected to DECAGRAMTON!');
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
connectToWhatsApp();
|
|
104
|
-
```
|
|
62
|
+
## 👥 Contributors
|
|
105
63
|
|
|
106
|
-
|
|
107
|
-
Distributed under the MIT License.
|
|
64
|
+
This project is the result of the hard work of many developers. We acknowledge and thank them for their contributions:
|
|
108
65
|
|
|
109
|
-
|
|
110
|
-
**ZetaGo-Aurum**
|
|
66
|
+
- **Adhiraj Singh** (Original Creator of Baileys)
|
|
67
|
+
- **ZetaGo-Aurum** (Current Maintainer & Decagramton Developer)
|
|
68
|
+
- **FallZx Infinity** (Base Repository)
|
|
69
|
+
- **IbraDecode** (Contributor)
|
|
111
70
|
|
|
112
71
|
---
|
|
113
|
-
|
|
72
|
+
|
|
73
|
+
<div align="center">
|
|
74
|
+
© 2026 ZetaGo-Aurum. All Rights Reserved.
|
|
75
|
+
</div>
|