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.
Files changed (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.MD +110 -0
  3. package/WAProto/GenerateStatics.sh +4 -0
  4. package/WAProto/WAProto.proto +5619 -0
  5. package/WAProto/index.js +169661 -0
  6. package/engine-requirements.js +10 -0
  7. package/lib/Api/Internet/growagarden.js +30 -0
  8. package/lib/Api/creator.json +12 -0
  9. package/lib/Api/downloader/tiktokdownload.js +132 -0
  10. package/lib/Api/index.js +38 -0
  11. package/lib/Api/nsfw/loli.js +79 -0
  12. package/lib/Api/stalker/githubstalk.js +46 -0
  13. package/lib/Api/stalker/stalkroblox.js +94 -0
  14. package/lib/Api/stalker/tiktokstalk.js +68 -0
  15. package/lib/Api/tools/ssweb.js +38 -0
  16. package/lib/Defaults/baileys-version.json +3 -0
  17. package/lib/Defaults/index.js +122 -0
  18. package/lib/Defaults/phonenumber_mcc.json +223 -0
  19. package/lib/Signal/Group/ciphertext-message.js +15 -0
  20. package/lib/Signal/Group/group-session-builder.js +64 -0
  21. package/lib/Signal/Group/group_cipher.js +96 -0
  22. package/lib/Signal/Group/index.js +57 -0
  23. package/lib/Signal/Group/keyhelper.js +55 -0
  24. package/lib/Signal/Group/queue-job.js +57 -0
  25. package/lib/Signal/Group/sender-chain-key.js +34 -0
  26. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  27. package/lib/Signal/Group/sender-key-message.js +69 -0
  28. package/lib/Signal/Group/sender-key-name.js +51 -0
  29. package/lib/Signal/Group/sender-key-record.js +53 -0
  30. package/lib/Signal/Group/sender-key-state.js +99 -0
  31. package/lib/Signal/Group/sender-message-key.js +29 -0
  32. package/lib/Signal/libsignal.js +174 -0
  33. package/lib/Socket/Client/index.js +18 -0
  34. package/lib/Socket/Client/types.js +13 -0
  35. package/lib/Socket/Client/websocket.js +111 -0
  36. package/lib/Socket/Thandler.js +501 -0
  37. package/lib/Socket/business.js +266 -0
  38. package/lib/Socket/chats.js +1138 -0
  39. package/lib/Socket/communities.js +441 -0
  40. package/lib/Socket/groups.js +332 -0
  41. package/lib/Socket/index.js +43 -0
  42. package/lib/Socket/messages-recv.js +1538 -0
  43. package/lib/Socket/messages-send.js +1207 -0
  44. package/lib/Socket/newsletter.js +379 -0
  45. package/lib/Socket/socket.js +849 -0
  46. package/lib/Socket/usync.js +70 -0
  47. package/lib/Store/index.js +8 -0
  48. package/lib/Store/make-in-memory-store.js +533 -0
  49. package/lib/Store/make-ordered-dictionary.js +81 -0
  50. package/lib/Store/object-repository.js +27 -0
  51. package/lib/Types/Auth.js +2 -0
  52. package/lib/Types/Call.js +2 -0
  53. package/lib/Types/Chat.js +4 -0
  54. package/lib/Types/Contact.js +2 -0
  55. package/lib/Types/Events.js +2 -0
  56. package/lib/Types/GroupMetadata.js +2 -0
  57. package/lib/Types/Label.js +27 -0
  58. package/lib/Types/LabelAssociation.js +9 -0
  59. package/lib/Types/Message.js +7 -0
  60. package/lib/Types/Newsletter.js +18 -0
  61. package/lib/Types/Product.js +2 -0
  62. package/lib/Types/Signal.js +2 -0
  63. package/lib/Types/Socket.js +2 -0
  64. package/lib/Types/State.js +2 -0
  65. package/lib/Types/USync.js +2 -0
  66. package/lib/Types/index.js +42 -0
  67. package/lib/Utils/async-iterable.js +40 -0
  68. package/lib/Utils/audioToBuffer.js +29 -0
  69. package/lib/Utils/auth-utils.js +200 -0
  70. package/lib/Utils/baileys-event-stream.js +67 -0
  71. package/lib/Utils/browser-utils.js +35 -0
  72. package/lib/Utils/business.js +234 -0
  73. package/lib/Utils/chat-utils.js +730 -0
  74. package/lib/Utils/crypto.js +193 -0
  75. package/lib/Utils/decode-wa-message.js +207 -0
  76. package/lib/Utils/event-buffer.js +565 -0
  77. package/lib/Utils/generics.js +432 -0
  78. package/lib/Utils/history.js +94 -0
  79. package/lib/Utils/index.js +36 -0
  80. package/lib/Utils/link-preview.js +126 -0
  81. package/lib/Utils/logger.js +7 -0
  82. package/lib/Utils/lt-hash.js +51 -0
  83. package/lib/Utils/make-mutex.js +43 -0
  84. package/lib/Utils/message-retry-manager.js +128 -0
  85. package/lib/Utils/messages-media.js +926 -0
  86. package/lib/Utils/messages.js +1105 -0
  87. package/lib/Utils/noise-handler.js +150 -0
  88. package/lib/Utils/process-message.js +404 -0
  89. package/lib/Utils/resolveJid.js +48 -0
  90. package/lib/Utils/signal.js +153 -0
  91. package/lib/Utils/streamToBuffer.js +15 -0
  92. package/lib/Utils/use-multi-file-auth-state.js +122 -0
  93. package/lib/Utils/validate-connection.js +229 -0
  94. package/lib/WABinary/constants.js +1303 -0
  95. package/lib/WABinary/decode.js +265 -0
  96. package/lib/WABinary/encode.js +250 -0
  97. package/lib/WABinary/generic-utils.js +110 -0
  98. package/lib/WABinary/index.js +21 -0
  99. package/lib/WABinary/jid-utils.js +85 -0
  100. package/lib/WABinary/types.js +2 -0
  101. package/lib/WAM/BinaryInfo.js +13 -0
  102. package/lib/WAM/constants.js +15350 -0
  103. package/lib/WAM/encode.js +155 -0
  104. package/lib/WAM/index.js +19 -0
  105. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  106. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +57 -0
  107. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +30 -0
  108. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  109. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +53 -0
  110. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
  111. package/lib/WAUSync/Protocols/index.js +20 -0
  112. package/lib/WAUSync/USyncQuery.js +89 -0
  113. package/lib/WAUSync/USyncUser.js +26 -0
  114. package/lib/WAUSync/index.js +19 -0
  115. package/lib/index.js +91 -0
  116. 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
+ ![Typing SVG](https://readme-typing-svg.herokuapp.com?color=00BFFF&center=true&vCenter=true&width=600&lines=Fastest+Baileys+Fork;Advanced+WhatsApp+Automation;Desktop+App+Support;Built+for+Developers)
13
+
14
+ <br/>
15
+
16
+ ![npm version](https://img.shields.io/npm/v/dct-dev-private-baileys?style=for-the-badge&logo=npm)
17
+ ![npm downloads](https://img.shields.io/npm/dt/dct-dev-private-baileys?style=for-the-badge&logo=npm)
18
+ ![npm size](https://img.shields.io/bundlephobia/minzip/dct-dev-private-baileys?style=for-the-badge)
19
+ ![node](https://img.shields.io/node/v/dct-dev-private-baileys?style=for-the-badge)
20
+ ![license](https://img.shields.io/npm/l/dct-dev-private-baileys?style=for-the-badge)
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;