@teamqadeer1/baileys 0.0.0-stage β 1.0.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 +23 -0
- package/README.md +134 -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,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cantarella
|
|
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.
|
|
22
|
+
|
|
23
|
+
,
|
package/README.md
CHANGED
|
@@ -1,3 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
β‘ TEAM QADEER BAILEYS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://upload.zireku.com/get/7W4ZZ8.jpg" alt="Team Qadeer Baileys" width="100%" />
|
|
5
|
+
</p><p align="center">
|
|
6
|
+
<strong>A Flexible WhatsApp Automation Library for Node.js</strong>
|
|
7
|
+
<br />
|
|
8
|
+
Built for developers. Designed for flexibility. Powered by Team Qadeer.
|
|
9
|
+
</p><p align="center">
|
|
10
|
+
<img src="https://img.shields.io/badge/PROJECT-TEAM%20QADEER-16A34A?style=for-the-badge" alt="Team Qadeer" />
|
|
11
|
+
<img src="https://img.shields.io/badge/PLATFORM-WHATSAPP-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" alt="WhatsApp" />
|
|
12
|
+
<img src="https://img.shields.io/badge/RUNTIME-NODE.JS-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node.js" />
|
|
13
|
+
</p>---
|
|
14
|
+
|
|
15
|
+
π Introduction
|
|
16
|
+
|
|
17
|
+
Team Qadeer Baileys is a Node.js library project designed for developers who want to build WhatsApp-connected applications, automation tools, chatbots, and messaging solutions.
|
|
18
|
+
|
|
19
|
+
With a developer-focused approach, the project aims to provide a flexible foundation for implementing WhatsApp connectivity, authentication, session handling, and messaging workflows.
|
|
20
|
+
|
|
21
|
+
Whether you're building a personal assistant, an automated messaging system, or a custom communication application, Team Qadeer Baileys is designed to support your development workflow.
|
|
22
|
+
|
|
23
|
+
β¨ Key Features
|
|
24
|
+
|
|
25
|
+
- π Flexible Pairing β Pairing options according to the methods implemented by the package.
|
|
26
|
+
- π Session Management β Organize authentication credentials and session data.
|
|
27
|
+
- π¬ Messaging Capabilities β Build messaging workflows using the APIs supported by the library.
|
|
28
|
+
- π± Multi-Device Support β Designed for WhatsApp multi-device environments, subject to compatibility.
|
|
29
|
+
- βοΈ Easy Integration β Integrate the package into Node.js applications.
|
|
30
|
+
- π€ Bot Development β Build command-based bots, automated replies, and custom workflows.
|
|
31
|
+
- π§© Customizable Architecture β Adapt your implementation to your project's requirements.
|
|
32
|
+
- π‘οΈ Security Awareness β Follow best practices for authentication, privacy, and session protection.
|
|
33
|
+
|
|
34
|
+
Actual functionality depends on the implementation and version of the published package.
|
|
35
|
+
|
|
36
|
+
π¦ Installation
|
|
37
|
+
|
|
38
|
+
Install the package using npm:
|
|
39
|
+
|
|
40
|
+
npm install teamqadeer-baileys
|
|
41
|
+
|
|
42
|
+
Alternatively, use Yarn:
|
|
43
|
+
|
|
44
|
+
yarn add teamqadeer-baileys
|
|
45
|
+
|
|
46
|
+
Or pnpm:
|
|
47
|
+
|
|
48
|
+
pnpm add teamqadeer-baileys
|
|
49
|
+
|
|
50
|
+
Β«Note: Replace "teamqadeer-baileys" with the actual published npm package name if it differs.Β»
|
|
51
|
+
|
|
52
|
+
β‘ Getting Started
|
|
53
|
+
|
|
54
|
+
Before using the library, ensure that Node.js and a supported package manager are installed.
|
|
55
|
+
|
|
56
|
+
Check your environment:
|
|
57
|
+
|
|
58
|
+
node --version
|
|
59
|
+
npm --version
|
|
60
|
+
|
|
61
|
+
Install the package and refer to its exported APIs and included examples to configure your WhatsApp connection.
|
|
62
|
+
|
|
63
|
+
Basic Import Example
|
|
64
|
+
|
|
65
|
+
// CommonJS import example.
|
|
66
|
+
// The exported API depends on your package implementation.
|
|
67
|
+
|
|
68
|
+
const baileys = require('teamqadeer-baileys');
|
|
69
|
+
|
|
70
|
+
console.log('Team Qadeer Baileys loaded.');
|
|
71
|
+
|
|
72
|
+
This example demonstrates package importing only. Connection initialization, pairing, authentication, and messaging must use the actual APIs exported by the package.
|
|
73
|
+
|
|
74
|
+
π οΈ Development
|
|
75
|
+
|
|
76
|
+
When developing applications with Team Qadeer Baileys:
|
|
77
|
+
|
|
78
|
+
1. Install the package and its required dependencies.
|
|
79
|
+
2. Configure authentication and session handling.
|
|
80
|
+
3. Initialize the connection using the supported API.
|
|
81
|
+
4. Implement the messaging and event-handling workflows your application needs.
|
|
82
|
+
5. Handle connection errors and reconnection scenarios.
|
|
83
|
+
6. Protect authentication credentials and session files.
|
|
84
|
+
|
|
85
|
+
For exact methods, configuration options, and supported features, consult the project's source code and examples.
|
|
86
|
+
|
|
87
|
+
π Security Best Practices
|
|
88
|
+
|
|
89
|
+
Protect your application and users by following these recommendations:
|
|
90
|
+
|
|
91
|
+
- Never publish WhatsApp authentication credentials or session files.
|
|
92
|
+
- Keep API keys and sensitive configuration in environment variables.
|
|
93
|
+
- Add private configuration files and session directories to ".gitignore".
|
|
94
|
+
- Avoid logging authentication secrets or private message contents.
|
|
95
|
+
- Store session data securely and restrict unauthorized access.
|
|
96
|
+
- Keep dependencies updated and review security advisories.
|
|
97
|
+
- Never expose private credentials in public repositories or npm packages.
|
|
98
|
+
|
|
99
|
+
β οΈ Responsible Use
|
|
100
|
+
|
|
101
|
+
This library is intended for legitimate development, testing, and authorized automation.
|
|
102
|
+
|
|
103
|
+
Users are responsible for ensuring that their applications comply with applicable laws, privacy requirements, and WhatsApp's terms and policies.
|
|
104
|
+
|
|
105
|
+
Do not use this project for spam, scams, harassment, unauthorized access, or the collection and distribution of private information without permission.
|
|
106
|
+
|
|
107
|
+
WhatsApp may change its protocols or behavior, which can affect compatibility, connectivity, and feature availability.
|
|
108
|
+
|
|
109
|
+
π License and Copyright
|
|
110
|
+
|
|
111
|
+
Copyright Β© 2026 Team Qadeer Baileys. All Rights Reserved.
|
|
112
|
+
|
|
113
|
+
- Creator: Qadeer Khan
|
|
114
|
+
- Project: Team Qadeer Baileys
|
|
115
|
+
- Brand: Team Qadeer
|
|
116
|
+
|
|
117
|
+
Unless expressly authorized in writing by the copyright holder, unauthorized copying, redistribution, republication, or commercial resale of original proprietary code and materials from this project is prohibited.
|
|
118
|
+
|
|
119
|
+
Users may not falsely claim authorship of the original project or its proprietary components.
|
|
120
|
+
|
|
121
|
+
Third-party dependencies and incorporated code remain subject to their respective licenses. This notice does not replace or override any applicable third-party license.
|
|
122
|
+
|
|
123
|
+
For permission or licensing inquiries, contact the project owner through the project's official contact channel.
|
|
124
|
+
|
|
125
|
+
π Acknowledgements
|
|
126
|
+
|
|
127
|
+
Thank you for your interest in Team Qadeer Baileys.
|
|
128
|
+
|
|
129
|
+
The project is developed under the Team Qadeer brand with a focus on flexibility, maintainability, and developer experience.
|
|
130
|
+
|
|
131
|
+
<p align="center">
|
|
132
|
+
<strong>TEAM QADEER</strong>
|
|
133
|
+
<br />
|
|
134
|
+
<em>Code with Purpose. Build Without Limits.</em>
|
|
135
|
+
</p>
|