@teamqadeer1/baileys 0.0.0-stage → 1.0.1
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 +21 -0
- package/README.md +87 -2
- package/WAProto/index.js +115857 -0
- package/engine-requirements.js +10 -0
- package/lib/Defaults/index.js +120 -0
- package/lib/Defaults/noxleyss-version.json +3 -0
- package/lib/Signal/Group/ciphertext-message.js +15 -0
- package/lib/Signal/Group/group-session-builder.js +64 -0
- package/lib/Signal/Group/group_cipher.js +96 -0
- package/lib/Signal/Group/index.js +57 -0
- package/lib/Signal/Group/keyhelper.js +55 -0
- package/lib/Signal/Group/queue-job.js +57 -0
- package/lib/Signal/Group/sender-chain-key.js +34 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
- package/lib/Signal/Group/sender-key-message.js +69 -0
- package/lib/Signal/Group/sender-key-name.js +51 -0
- package/lib/Signal/Group/sender-key-record.js +53 -0
- package/lib/Signal/Group/sender-key-state.js +99 -0
- package/lib/Signal/Group/sender-message-key.js +29 -0
- package/lib/Signal/libsignal.js +184 -0
- package/lib/Socket/Client/index.js +18 -0
- package/lib/Socket/Client/types.js +13 -0
- package/lib/Socket/Client/websocket.js +72 -0
- package/lib/Socket/business.js +260 -0
- package/lib/Socket/chats.js +997 -0
- package/lib/Socket/groups.js +332 -0
- package/lib/Socket/index.js +10 -0
- package/lib/Socket/messages-recv.js +1107 -0
- package/lib/Socket/messages-send.js +944 -0
- package/lib/Socket/newsletter.js +286 -0
- package/lib/Socket/socket.js +646 -0
- package/lib/Socket/usync.js +70 -0
- package/lib/Store/index.js +8 -0
- package/lib/Store/make-in-memory-store.js +439 -0
- package/lib/Store/make-ordered-dictionary.js +81 -0
- package/lib/Store/object-repository.js +27 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.js +4 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.js +27 -0
- package/lib/Types/LabelAssociation.js +9 -0
- package/lib/Types/Message.js +7 -0
- package/lib/Types/Newsletter.js +18 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.js +2 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.js +42 -0
- package/lib/Utils/auth-utils.js +199 -0
- package/lib/Utils/browser-utils.js +35 -0
- package/lib/Utils/business.js +234 -0
- package/lib/Utils/chat-utils.js +730 -0
- package/lib/Utils/crypto.js +193 -0
- package/lib/Utils/decode-wa-message.js +217 -0
- package/lib/Utils/event-buffer.js +518 -0
- package/lib/Utils/generics.js +467 -0
- package/lib/Utils/history.js +94 -0
- package/lib/Utils/index.js +35 -0
- package/lib/Utils/link-preview.js +126 -0
- package/lib/Utils/logger.js +7 -0
- package/lib/Utils/lt-hash.js +51 -0
- package/lib/Utils/make-mutex.js +43 -0
- package/lib/Utils/message-retry-manager.js +185 -0
- package/lib/Utils/messages-media.js +879 -0
- package/lib/Utils/messages.js +1944 -0
- package/lib/Utils/noise-handler.js +150 -0
- package/lib/Utils/process-message.js +404 -0
- package/lib/Utils/qadeer-event-stream.js +63 -0
- package/lib/Utils/signal.js +153 -0
- package/lib/Utils/use-multi-file-auth-state.js +124 -0
- package/lib/Utils/validate-connection.js +229 -0
- package/lib/WABinary/constants.js +1303 -0
- package/lib/WABinary/decode.js +265 -0
- package/lib/WABinary/encode.js +250 -0
- package/lib/WABinary/generic-utils.js +110 -0
- package/lib/WABinary/index.js +21 -0
- package/lib/WABinary/jid-utils.js +85 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.js +13 -0
- package/lib/WAM/constants.js +15350 -0
- package/lib/WAM/encode.js +155 -0
- package/lib/WAM/index.js +19 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +57 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +30 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +53 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
- package/lib/WAUSync/Protocols/index.js +20 -0
- package/lib/WAUSync/USyncQuery.js +89 -0
- package/lib/WAUSync/USyncUser.js +26 -0
- package/lib/WAUSync/index.js +19 -0
- package/lib/index.js +80 -0
- package/package.json +110 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Qadeer Khan (Team Qadeer)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,88 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 🌟 QADEER AI MINI - WhatsApp Automation Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **An Ultimate, Flexible, and High-Performance WhatsApp API Library for Node.js**
|
|
4
|
+
> *Built exclusively for developers. Designed for power. Powered by Team Qadeer.*
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 📖 Introduction
|
|
9
|
+
|
|
10
|
+
Welcome to **Qadeer AI Mini Baileys**, a premium Node.js library engineered for developers who want to build next-generation WhatsApp-connected applications, automation tools, and advanced chatbots.
|
|
11
|
+
|
|
12
|
+
We took the best concepts of WhatsApp automation and refined them into a flexible, developer-friendly foundation. Whether you are building a personal AI assistant, an enterprise-level automated messaging system, or a custom communication app, **Team Qadeer** provides the ultimate toolkit for your workflow.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ✨ Key Features
|
|
17
|
+
|
|
18
|
+
* **🔐 Seamless Pairing:** Advanced and highly flexible pairing methods tailored to your bot's needs.
|
|
19
|
+
* **🔄 Smart Session Management:** Secure, fast, and robust authentication and session handling.
|
|
20
|
+
* **💬 Rich Messaging Capabilities:** Full support for text, media, buttons, and interactive native flow messages.
|
|
21
|
+
* **📱 Multi-Device Ready:** Perfectly optimized for WhatsApp's latest multi-device architecture.
|
|
22
|
+
* **⚙️ Plug & Play Integration:** Incredibly easy to integrate into any existing Node.js project.
|
|
23
|
+
* **🛡️ Stealth & Security:** Built-in safeguards to protect authentication credentials and ensure smooth running.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 📦 Installation
|
|
28
|
+
|
|
29
|
+
You can install the official package directly from NPM. Run one of the following commands in your terminal:
|
|
30
|
+
|
|
31
|
+
**Using NPM:**
|
|
32
|
+
```bash
|
|
33
|
+
npm install @teamqadeer1/baileys
|
|
34
|
+
|
|
35
|
+
Using Yarn:
|
|
36
|
+
yarn add @teamqadeer1/baileys
|
|
37
|
+
|
|
38
|
+
🚀 Getting Started
|
|
39
|
+
Before using the library, ensure you are running Node.js (v20.0.0 or higher).
|
|
40
|
+
Basic Connection Example
|
|
41
|
+
Here is a quick example of how to import and initialize the library in your project:
|
|
42
|
+
const { makeWASocket, useMultiFileAuthState } = require('@teamqadeer1/baileys');
|
|
43
|
+
|
|
44
|
+
async function connectToWhatsApp() {
|
|
45
|
+
const { state, saveCreds } = await useMultiFileAuthState('qadeer_session');
|
|
46
|
+
|
|
47
|
+
const sock = makeWASocket({
|
|
48
|
+
auth: state,
|
|
49
|
+
printQRInTerminal: true,
|
|
50
|
+
browser: ['Ubuntu', 'Chrome', '20.0.04'],
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
sock.ev.on('connection.update', (update) => {
|
|
54
|
+
const { connection } = update;
|
|
55
|
+
if (connection === 'open') {
|
|
56
|
+
console.log('✅ Qadeer AI Mini is successfully connected to WhatsApp!');
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
sock.ev.on('creds.update', saveCreds);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
connectToWhatsApp();
|
|
64
|
+
|
|
65
|
+
🌐 Official Links
|
|
66
|
+
* Official Dashboard / Panel: Qadeer AI Panel
|
|
67
|
+
* GitHub Repository: Qadeer-Xtech
|
|
68
|
+
🔒 Security Best Practices
|
|
69
|
+
Your security is our top priority. Please adhere to these guidelines:
|
|
70
|
+
* Never share your session folder or authentication credentials.
|
|
71
|
+
* Keep API keys and sensitive data inside .env variables.
|
|
72
|
+
* Always add your session directories to .gitignore.
|
|
73
|
+
* Regularly update the package to get the latest security patches.
|
|
74
|
+
⚠️ Responsible Use
|
|
75
|
+
This library is intended for educational purposes, legitimate development, and authorized automation.
|
|
76
|
+
* Users are solely responsible for ensuring their applications comply with local laws and WhatsApp's Terms of Service.
|
|
77
|
+
* Team Qadeer is not responsible for any account bans or misuse of this library.
|
|
78
|
+
📄 Copyright & License
|
|
79
|
+
Copyright © 2026 Qadeer AI Mini & Team Qadeer. All Rights Reserved.
|
|
80
|
+
* Creator: Qadeer Khan
|
|
81
|
+
* Project: Qadeer AI Mini
|
|
82
|
+
* Brand: Team Qadeer
|
|
83
|
+
Unauthorized copying, redistribution, or commercial resale of the proprietary engine modifications is strictly prohibited.
|
|
84
|
+
<div align="center">
|
|
85
|
+
<b>TEAM QADEER</b>
|
|
86
|
+
|
|
87
|
+
<i>Code with Purpose. Build Without Limits.</i>
|
|
88
|
+
</div>
|