@zetagoaurum-socket/decagramton 3.2.5 → 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.
Files changed (92) hide show
  1. package/README.md +91 -91
  2. package/WAProto/index.js +56886 -17506
  3. package/engine-requirements.js +91 -0
  4. package/lib/Defaults/index.js +47 -2
  5. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  6. package/lib/Signal/Group/ciphertext-message.js +15 -0
  7. package/lib/Signal/Group/group-session-builder.d.ts +14 -0
  8. package/lib/Signal/Group/group-session-builder.js +64 -0
  9. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  10. package/lib/Signal/Group/group_cipher.js +96 -0
  11. package/lib/Signal/Group/index.d.ts +11 -0
  12. package/lib/Signal/Group/index.js +57 -0
  13. package/lib/Signal/Group/keyhelper.d.ts +10 -0
  14. package/lib/Signal/Group/keyhelper.js +55 -0
  15. package/lib/Signal/Group/queue-job.d.ts +1 -0
  16. package/lib/Signal/Group/queue-job.js +57 -0
  17. package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
  18. package/lib/Signal/Group/sender-chain-key.js +34 -0
  19. package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
  20. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  21. package/lib/Signal/Group/sender-key-message.d.ts +18 -0
  22. package/lib/Signal/Group/sender-key-message.js +69 -0
  23. package/lib/Signal/Group/sender-key-name.d.ts +17 -0
  24. package/lib/Signal/Group/sender-key-name.js +51 -0
  25. package/lib/Signal/Group/sender-key-record.d.ts +30 -0
  26. package/lib/Signal/Group/sender-key-record.js +53 -0
  27. package/lib/Signal/Group/sender-key-state.d.ts +38 -0
  28. package/lib/Signal/Group/sender-key-state.js +99 -0
  29. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  30. package/{WASignalGroup/sender_message_key.js → lib/Signal/Group/sender-message-key.js} +6 -16
  31. package/lib/Signal/libsignal.js +51 -29
  32. package/lib/Socket/business.d.ts +3 -2
  33. package/lib/Socket/chats.d.ts +215 -28
  34. package/lib/Socket/chats.js +166 -70
  35. package/lib/Socket/dugong.d.ts +254 -0
  36. package/lib/Socket/dugong.js +432 -141
  37. package/lib/Socket/groups.js +20 -23
  38. package/lib/Socket/index.js +2 -15
  39. package/lib/Socket/messages-recv.d.ts +56 -55
  40. package/lib/Socket/messages-recv.js +367 -131
  41. package/lib/Socket/messages-send.d.ts +3 -2
  42. package/lib/Socket/messages-send.js +423 -380
  43. package/lib/Socket/newsletter.js +147 -21
  44. package/lib/Socket/socket.js +156 -148
  45. package/lib/Socket/usync.d.ts +3 -3
  46. package/lib/Types/GroupMetadata.d.ts +1 -0
  47. package/lib/Types/Newsletter.d.ts +97 -86
  48. package/lib/Types/Newsletter.js +38 -32
  49. package/lib/Types/USync.d.ts +25 -0
  50. package/lib/Types/USync.js +2 -0
  51. package/lib/Utils/anti-crash.js +31 -0
  52. package/lib/Utils/chat-utils.js +6 -1
  53. package/lib/Utils/generics.js +66 -34
  54. package/lib/Utils/history.js +6 -1
  55. package/lib/Utils/index.js +0 -1
  56. package/lib/Utils/link-preview.js +1 -1
  57. package/lib/Utils/messages-media.js +145 -57
  58. package/lib/Utils/messages.js +92 -306
  59. package/lib/Utils/signal.js +48 -46
  60. package/lib/Utils/use-multi-file-auth-state.js +45 -6
  61. package/lib/Utils/validate-connection.js +89 -65
  62. package/lib/WABinary/constants.d.ts +27 -24
  63. package/lib/WABinary/encode.js +160 -123
  64. package/lib/WABinary/generic-utils.d.ts +2 -0
  65. package/lib/WABinary/generic-utils.js +124 -36
  66. package/lib/WABinary/jid-utils.js +5 -26
  67. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  68. package/lib/index.d.ts +1 -0
  69. package/lib/index.js +56 -0
  70. package/package.json +107 -101
  71. package/LICENSE +0 -21
  72. package/WAProto/GenerateStatics.sh +0 -4
  73. package/WAProto/WAProto.proto +0 -3344
  74. package/WAProto/index.d.ts +0 -37016
  75. package/WASignalGroup/GroupProtocol.js +0 -1697
  76. package/WASignalGroup/ciphertext_message.js +0 -16
  77. package/WASignalGroup/group_cipher.js +0 -120
  78. package/WASignalGroup/group_session_builder.js +0 -46
  79. package/WASignalGroup/index.js +0 -5
  80. package/WASignalGroup/keyhelper.js +0 -21
  81. package/WASignalGroup/protobufs.js +0 -3
  82. package/WASignalGroup/queue_job.js +0 -69
  83. package/WASignalGroup/sender_chain_key.js +0 -50
  84. package/WASignalGroup/sender_key_distribution_message.js +0 -78
  85. package/WASignalGroup/sender_key_message.js +0 -92
  86. package/WASignalGroup/sender_key_name.js +0 -70
  87. package/WASignalGroup/sender_key_record.js +0 -56
  88. package/WASignalGroup/sender_key_state.js +0 -129
  89. package/decagramton.jpg +0 -0
  90. package/lib/Utils/rate-limiter.js +0 -55
  91. package/lib/WAUSync/Fall +0 -1
  92. package/lib/WAUSync/Protocols/Fal +0 -1
package/README.md CHANGED
@@ -1,113 +1,113 @@
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
- [![npm version](https://img.shields.io/npm/v/@zetagoaurum-socket/decagramton.svg?style=flat-square)](https://www.npmjs.com/package/@zetagoaurum-socket/decagramton)
7
- [![License](https://img.shields.io/npm/l/@zetagoaurum-socket/decagramton.svg?style=flat-square)](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>
4
+
5
+ ![ZetaGo-Aurum](https://img.shields.io/badge/ZetaGo--Aurum--Decagramton-v3.2.7-gold?style=for-the-badge&logo=whatsapp&logoColor=white)
6
+ ![Version](https://img.shields.io/badge/Version-3.2.7-blue?style=for-the-badge)
7
+ ![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)
8
+
9
+ **The Ten-Pointed Star of Speed**
10
+ *Premium. Secure. Enterprise.*
11
+
12
+ [Features](#features) [Installation](#installation) [Usage](#usage) • [Safety](#safety)
13
+
14
14
  </div>
15
15
 
16
+ /*
17
+ ©2025 FallZx Infinity. All Rights Reserved.
18
+
19
+ Type: ZetaGo Aurum Decagramton WhatsApp Bot
20
+ Creator: FallZx Infinity
21
+ YouTube: fallzx-features
22
+
23
+ PROHIBITED:
24
+ - Copying any part of this code without explicit permission.
25
+ - Selling, redistributing, or modifying the code without the author's approval.
26
+ - Claiming this project as your own.
27
+
28
+ WARNING:
29
+ Any act of plagiarism, data theft, or illegal redistribution of this project
30
+ will be subject to legal action under applicable intellectual property laws.
31
+
32
+ This project is NOT open-source. Unauthorized use of the code is strictly forbidden.
33
+
34
+ For collaboration or usage permissions, please contact via YouTube: fallzx-features
35
+ */
36
+
37
+
16
38
  ---
17
39
 
18
- ## 🇮🇩 Bahasa Indonesia (ID)
40
+ ### 🚀 Key Features & Benefits
41
+
42
+ - 🔐 Flexible Pairing Options
43
+ Supports both automatic and custom pairing methods for seamless connectivity.
19
44
 
20
- ### 🚀 Filosofi DECAGRAMTON
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**.
45
+ - 🛠️ Improved Stability
46
+ Resolves previous pairing issues that caused connection failures or unexpected disconnections.
22
47
 
23
- ### 🌟 THE 10 STARS (10 Fitur Unggulan)
24
- Sesuai lambang Decagram, library ini memiliki 10 kekuatan utama:
48
+ - 💬 Rich Interactive Messaging
49
+ Enables interactive messages, action buttons, and dynamic menus for engaging user experiences.
25
50
 
26
- 1. **🛡️ Smart Rate Limiter (Security)**: Algoritma cerdas "Anti-Neko-Neko" yang menjaga akun aman dari banned akibat spam.
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.
51
+ - 🔄 Smart Session Management
52
+ Automatically manages sessions efficiently to ensure consistent and reliable performance.
36
53
 
37
- ### 📦 Instalasi (Installation)
54
+ - 📱 Multi-Device Compatibility
55
+ Fully compatible with the latest WhatsApp multi-device capabilities.
56
+
57
+ - ⚙️ Lightweight & Easy Integration
58
+ Designed to be lightweight, stable, and easy to embed into a wide range of systems.
59
+
60
+ - 🤖 Ideal for Bots & Automation
61
+ Perfect for building chatbots, customer service automation, and full-scale communication solutions.
62
+
63
+ - 📘 Developer-Friendly Resources
64
+ Comes with comprehensive documentation and ready-to-use code examples to accelerate development.
65
+
66
+ ---
67
+
68
+ ### 🚀 Getting Started
69
+
70
+ Begin by installing the library:
38
71
 
39
- **Via NPM (Recommended):**
40
72
  ```bash
41
73
  npm install @zetagoaurum-socket/decagramton
42
- # atau
43
- yarn add @zetagoaurum-socket/decagramton
44
74
  ```
45
75
 
46
- **Via GitHub (Latest/Dev):**
47
- ```bash
48
- npm install github:ZetaGo-Aurum/Decagramton
49
- ```
76
+ 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.
77
+
78
+ ---
79
+
80
+ ### Why Choose whatsapp baileys?
50
81
 
51
- > [!TIP]
52
- > **Migration from WhiskeySockets/Baileys?**
53
- > Decagramton is a **Drop-in Replacement**. Simply uninstall your old baileys and install Decagramton.
54
- > `npm uninstall @whiskeysockets/baileys && npm install @zetagoaurum-socket/decagramton`
55
- > Then update your require/import:
56
- > `const { ... } = require('@zetagoaurum-socket/decagramton')`
82
+ Start by installing the library using your preferred package manager. Follow the step-by-step configuration guide to set everything up quickly. Explore the included example codes to understand key features in action. Leverage session management and interactive messaging capabilities to build robust, scalable solutions tailored to your project's or business's specific needs.
57
83
 
58
84
  ---
59
85
 
60
- ## 🇺🇸 English (EN)
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
- ```
86
+ ## Fitur Unggulan
87
+
88
+ Supports custom pairing codes that are stable and secure
89
+ Mendukung kode pairing kustom yang stabil dan aman untuk koneksi WhatsApp.
90
+
91
+ 🛠️ Fixes previous issues related to pairing and authentication
92
+ Telah diperbaiki dari berbagai masalah sebelumnya terkait pairing dan otentikasi.
93
+
94
+ 💬 Features interactive messages and action buttons for dynamic menu creation
95
+ Menyediakan fitur pesan interaktif dan tombol aksi untuk membuat menu dinamis dengan mudah.
105
96
 
106
- ## 📜 License
107
- Distributed under the MIT License.
97
+ 🔄 Automatic and efficient session management for long-term stability
98
+ Manajemen sesi otomatis dan efisien untuk kestabilan penggunaan jangka panjang.
108
99
 
109
- ## 📞 Contact
110
- **ZetaGo-Aurum** - [GitHub](https://github.com/ZetaGo-Aurum)
100
+ 📱 Compatible with the latest multi-device features from WhatsApp
101
+ Kompatibel dengan fitur multi-perangkat terbaru dari WhatsApp.
102
+
103
+ • ⚙️ Easy to integrate and customize based on your needs
104
+ Mudah diintegrasikan dan dikustomisasi sesuai kebutuhan pengembanganmu.
105
+
106
+ • 🤖 Perfect for developing bots, customer service automation, and other communication applications
107
+ Cocok untuk membuat bot, otomatisasi layanan pelanggan, atau aplikasi komunikasi lainnya.
111
108
 
112
109
  ---
113
- <p align="center">Made with 🌟 by ZetaGo-Aurum | DECAGRAMTON Enterprise</p>
110
+
111
+ 📚 For full documentation, installation instructions, and usage examples, please refer to the official GitHub repository and join the community discussions. This project is actively maintained and continuously improved to support developers building modern WhatsApp automation solutions.
112
+
113
+ 🙏 Thank you for choosing WhatsApp Baileys as your trusted tool for WhatsApp automation. We appreciate your support!