dct-dev-private-baileys 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 +21 -0
- package/README.MD +110 -0
- package/WAProto/GenerateStatics.sh +4 -0
- package/WAProto/WAProto.proto +5619 -0
- package/WAProto/index.js +169661 -0
- package/engine-requirements.js +10 -0
- package/lib/Api/Internet/growagarden.js +30 -0
- package/lib/Api/creator.json +12 -0
- package/lib/Api/downloader/tiktokdownload.js +132 -0
- package/lib/Api/index.js +38 -0
- package/lib/Api/nsfw/loli.js +79 -0
- package/lib/Api/stalker/githubstalk.js +46 -0
- package/lib/Api/stalker/stalkroblox.js +94 -0
- package/lib/Api/stalker/tiktokstalk.js +68 -0
- package/lib/Api/tools/ssweb.js +38 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.js +122 -0
- package/lib/Defaults/phonenumber_mcc.json +223 -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 +111 -0
- package/lib/Socket/Thandler.js +501 -0
- package/lib/Socket/business.js +266 -0
- package/lib/Socket/chats.js +1138 -0
- package/lib/Socket/communities.js +441 -0
- package/lib/Socket/groups.js +332 -0
- package/lib/Socket/index.js +43 -0
- package/lib/Socket/messages-recv.js +1538 -0
- package/lib/Socket/messages-send.js +1207 -0
- package/lib/Socket/newsletter.js +379 -0
- package/lib/Socket/socket.js +849 -0
- package/lib/Socket/usync.js +70 -0
- package/lib/Store/index.js +8 -0
- package/lib/Store/make-in-memory-store.js +533 -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/async-iterable.js +40 -0
- package/lib/Utils/audioToBuffer.js +29 -0
- package/lib/Utils/auth-utils.js +200 -0
- package/lib/Utils/baileys-event-stream.js +67 -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 +207 -0
- package/lib/Utils/event-buffer.js +565 -0
- package/lib/Utils/generics.js +432 -0
- package/lib/Utils/history.js +94 -0
- package/lib/Utils/index.js +36 -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 +128 -0
- package/lib/Utils/messages-media.js +926 -0
- package/lib/Utils/messages.js +1105 -0
- package/lib/Utils/noise-handler.js +150 -0
- package/lib/Utils/process-message.js +404 -0
- package/lib/Utils/resolveJid.js +48 -0
- package/lib/Utils/signal.js +153 -0
- package/lib/Utils/streamToBuffer.js +15 -0
- package/lib/Utils/use-multi-file-auth-state.js +122 -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 +91 -0
- package/package.json +127 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 wileys
|
|
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,110 @@
|
|
|
1
|
+
<img src="https://user-images.githubusercontent.com/74038190/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="100%"/>
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
# ⚡🔷 DCT DEV PRIVATE BAILEYS 🔷⚡
|
|
6
|
+
### 🧠 Advanced WhatsApp API — Powered by DCT Dula Dev
|
|
7
|
+
|
|
8
|
+
<img src="https://files.catbox.moe/tklego.png" width="420" style="border-radius:20px;" />
|
|
9
|
+
|
|
10
|
+
<br/>
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
<br/>
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## 🚀 Overview
|
|
30
|
+
|
|
31
|
+
**dct-dev-private-baileys** is a **high-performance custom fork of Baileys**, built for:
|
|
32
|
+
|
|
33
|
+
- ⚡ Ultra-fast performance
|
|
34
|
+
- 🧠 Clean developer experience
|
|
35
|
+
- 🔐 Advanced pairing system
|
|
36
|
+
- 📱 Desktop & Web support
|
|
37
|
+
- 🔥 Powerful automation features
|
|
38
|
+
|
|
39
|
+
> Private optimized build with exclusive enhancements.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## ✨ Features
|
|
44
|
+
|
|
45
|
+
- ✅ WhatsApp Web Integration
|
|
46
|
+
- ✅ Desktop App Support
|
|
47
|
+
- ✅ Buttons, Lists & Albums
|
|
48
|
+
- ✅ Newsletter System
|
|
49
|
+
- ✅ Auto Reply
|
|
50
|
+
- ✅ Secure Auth
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 📦 Installation
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
npm install dct-dev-private-baileys
|
|
58
|
+
{
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@whiskeysockets/baileys": "npm:dct-dev-private-baileys"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</div>
|
|
64
|
+
```
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 🏁 Quick Start
|
|
68
|
+
```const { makeWASocket, useMultiFileAuthState } = require('dct-dev-private-baileys')
|
|
69
|
+
|
|
70
|
+
async function start() {
|
|
71
|
+
const { state, saveCreds } = await useMultiFileAuthState('creds')
|
|
72
|
+
|
|
73
|
+
const sock = makeWASocket({
|
|
74
|
+
auth: state,
|
|
75
|
+
printQRInTerminal: true
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
sock.ev.on('creds.update', saveCreds)
|
|
79
|
+
|
|
80
|
+
sock.ev.on('messages.upsert', async ({ messages }) => {
|
|
81
|
+
const m = messages[0]
|
|
82
|
+
if (!m.key.fromMe) {
|
|
83
|
+
await sock.sendMessage(m.key.remoteJid, {
|
|
84
|
+
text: "DCT BOT 🚀"
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
start()
|
|
91
|
+
```
|
|
92
|
+
---
|
|
93
|
+
## 🔐 Pairing
|
|
94
|
+
```const code = await sock.requestPairingCode("947XXXXXXXXX", "DCT-NOVA")
|
|
95
|
+
console.log(code)
|
|
96
|
+
💬 Messaging
|
|
97
|
+
await sock.sendMessage(jid, {
|
|
98
|
+
text: "Hello from DCT"
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
📞 Support
|
|
103
|
+
<p align="center"> <a href="https://wa.me/947XXXXXXXXX"> <img src="https://img.shields.io/badge/WhatsApp-25D366?style=for-the-badge&logo=whatsapp"/> </a> </p>
|
|
104
|
+
👑 Author
|
|
105
|
+
|
|
106
|
+
DCT Dula Dev
|
|
107
|
+
|
|
108
|
+
<div align="center"> <img src="https://user-images.githubusercontent.com/74038190/212284100-561aa473-3905-4a80-b561-0d28506553ee.gif" width="100%"/>
|
|
109
|
+
|
|
110
|
+
Made with ❤️ by DCT Dula Dev
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
yarn pbjs -t static-module -w commonjs -o ./WAProto/index.js ./WAProto/WAProto.proto;
|
|
2
|
+
yarn pbts -o ./WAProto/index.d.ts ./WAProto/index.js;
|
|
3
|
+
|
|
4
|
+
#protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=env=node,useOptionals=true,forceLong=long --ts_proto_out=. ./src/Binary/WAMessage.proto;
|