@devpeacemaker/baileys 2.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 +56 -0
- package/WAProto/GenerateStatics.sh +2 -0
- package/WAProto/WAProto.proto +4633 -0
- package/WAProto/index.js +165059 -0
- package/engine-requirements.js +10 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.js +105 -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 +174 -0
- package/lib/Socket/Client/index.js +18 -0
- package/lib/Socket/Client/types.js +13 -0
- package/lib/Socket/Client/websocket.js +62 -0
- package/lib/Socket/business.js +260 -0
- package/lib/Socket/chats.js +880 -0
- package/lib/Socket/gcstatus.js +237 -0
- package/lib/Socket/groups.js +340 -0
- package/lib/Socket/index.js +10 -0
- package/lib/Socket/messages-recv.js +1079 -0
- package/lib/Socket/messages-send.js +1015 -0
- package/lib/Socket/mex.js +46 -0
- package/lib/Socket/newsletter.js +225 -0
- package/lib/Socket/socket.js +617 -0
- package/lib/Socket/usync.js +65 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.js +10 -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 +33 -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/baileys-event-stream.js +63 -0
- package/lib/Utils/business.js +240 -0
- package/lib/Utils/chat-utils.js +741 -0
- package/lib/Utils/crypto.js +187 -0
- package/lib/Utils/decode-wa-message.js +284 -0
- package/lib/Utils/event-buffer.js +516 -0
- package/lib/Utils/generics.js +400 -0
- package/lib/Utils/history.js +100 -0
- package/lib/Utils/index.js +34 -0
- package/lib/Utils/lid-mapping.js +88 -0
- package/lib/Utils/link-preview.js +122 -0
- package/lib/Utils/logger.js +7 -0
- package/lib/Utils/lt-hash.js +51 -0
- package/lib/Utils/make-mutex.js +44 -0
- package/lib/Utils/messages-media.js +706 -0
- package/lib/Utils/messages.js +797 -0
- package/lib/Utils/noise-handler.js +150 -0
- package/lib/Utils/process-message.js +381 -0
- package/lib/Utils/signal.js +155 -0
- package/lib/Utils/use-multi-file-auth-state.js +124 -0
- package/lib/Utils/validate-connection.js +170 -0
- package/lib/WABinary/constants.js +1303 -0
- package/lib/WABinary/decode.js +266 -0
- package/lib/WABinary/encode.js +252 -0
- package/lib/WABinary/generic-utils.js +110 -0
- package/lib/WABinary/index.js +21 -0
- package/lib/WABinary/jid-utils.js +66 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.js +13 -0
- package/lib/WAM/constants.js +15243 -0
- package/lib/WAM/encode.js +153 -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 +93 -0
- package/lib/WAUSync/USyncUser.js +26 -0
- package/lib/WAUSync/index.js +19 -0
- package/lib/index.js +30 -0
- package/package.json +41 -0
- package/test.js +7 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Gifted Tech
|
|
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
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>Gifted-Baileys</h1>
|
|
3
|
+
<p>A WebSocket-based JavaScript library for interacting with the WhatsApp Web API</p>
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/gifted-baileys)
|
|
6
|
+
[](https://www.npmjs.com/package/gifted-baileys)
|
|
7
|
+
[](https://github.com/mauricegift/gifted-baileys/blob/main/LICENSE)
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
## Disclaimer
|
|
11
|
+
|
|
12
|
+
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or affiliates. Use at your own discretion. Do not spam people with this. We discourage any stalkerware, bulk or automated messaging usage.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install gifted-baileys
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or using yarn:
|
|
21
|
+
```bash
|
|
22
|
+
yarn add gifted-baileys
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
### CommonJS (Recommended)
|
|
28
|
+
```javascript
|
|
29
|
+
const { default: makeWASocket, useMultiFileAuthState, Browsers } = require('gifted-baileys')
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### ES Modules / TypeScript
|
|
33
|
+
```javascript
|
|
34
|
+
import pkg from 'gifted-baileys'
|
|
35
|
+
const { default: makeWASocket, useMultiFileAuthState, Browsers } = pkg
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
- Full WhatsApp Web API support
|
|
41
|
+
- Multi-device support with QR code and pairing code authentication
|
|
42
|
+
- LID (Link ID) addressing support for both personal chats and groups
|
|
43
|
+
- Group status/story sending functionality
|
|
44
|
+
- Session management and restoration
|
|
45
|
+
- Message sending, receiving, and manipulation
|
|
46
|
+
- Group management
|
|
47
|
+
- Privacy settings
|
|
48
|
+
- Profile management
|
|
49
|
+
- And much more!
|
|
50
|
+
|
|
51
|
+
> **Note:** For sending buttons, please use the [gifted-btns](https://npmjs.com/package/gifted-btns) package.
|
|
52
|
+
|
|
53
|
+
## Documentation
|
|
54
|
+
|
|
55
|
+
Full documentation is available at [baileys.giftedtech.co.ke](https://baileys.giftedtech.co.ke)
|
|
56
|
+
|