prastzyy 0.0.1-security → 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.
Potentially problematic release.
This version of prastzyy might be problematic. Click here for more details.
- package/LICENSE +30 -0
- package/README.md +478 -3
- package/WAProto/GenerateStatics.sh +3 -0
- package/WAProto/WAProto.proto +6902 -0
- package/WAProto/fix-imports.js +85 -0
- package/WAProto/index.d.ts +79257 -0
- package/WAProto/index.js +242946 -0
- package/engine-requirements.js +10 -0
- package/lib/Defaults/index.js +130 -0
- package/lib/Signal/Group/ciphertext-message.js +12 -0
- package/lib/Signal/Group/group-session-builder.js +30 -0
- package/lib/Signal/Group/group_cipher.js +82 -0
- package/lib/Signal/Group/index.js +12 -0
- package/lib/Signal/Group/keyhelper.js +18 -0
- package/lib/Signal/Group/sender-chain-key.js +26 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +63 -0
- package/lib/Signal/Group/sender-key-message.js +66 -0
- package/lib/Signal/Group/sender-key-name.js +48 -0
- package/lib/Signal/Group/sender-key-record.js +41 -0
- package/lib/Signal/Group/sender-key-state.js +84 -0
- package/lib/Signal/Group/sender-message-key.js +26 -0
- package/lib/Signal/libsignal.js +431 -0
- package/lib/Signal/lid-mapping.js +277 -0
- package/lib/Socket/Client/index.js +3 -0
- package/lib/Socket/Client/types.js +11 -0
- package/lib/Socket/Client/websocket.js +84 -0
- package/lib/Socket/business.js +379 -0
- package/lib/Socket/chats.js +1193 -0
- package/lib/Socket/communities.js +431 -0
- package/lib/Socket/groups.js +374 -0
- package/lib/Socket/index.js +12 -0
- package/lib/Socket/luxu.js +386 -0
- package/lib/Socket/messages-recv.js +1916 -0
- package/lib/Socket/messages-send.js +1453 -0
- package/lib/Socket/mex.js +41 -0
- package/lib/Socket/newsletter.js +295 -0
- package/lib/Socket/socket.js +980 -0
- package/lib/Socket/username.js +234 -0
- package/lib/Store/index.js +10 -0
- package/lib/Store/keyed-db.js +108 -0
- package/lib/Store/make-cache-manager-store.js +85 -0
- package/lib/Store/make-in-memory-store.js +198 -0
- package/lib/Store/make-ordered-dictionary.js +75 -0
- package/lib/Store/object-repository.js +32 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Bussines.js +2 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.js +8 -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 +25 -0
- package/lib/Types/LabelAssociation.js +7 -0
- package/lib/Types/Message.js +11 -0
- package/lib/Types/Mex.js +37 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.js +3 -0
- package/lib/Types/State.js +56 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.js +26 -0
- package/lib/Utils/auth-utils.js +302 -0
- package/lib/Utils/browser-utils.js +49 -0
- package/lib/Utils/business.js +231 -0
- package/lib/Utils/chat-utils.js +872 -0
- package/lib/Utils/companion-reg-client-utils.js +35 -0
- package/lib/Utils/crypto.js +118 -0
- package/lib/Utils/decode-wa-message.js +350 -0
- package/lib/Utils/event-buffer.js +622 -0
- package/lib/Utils/generics.js +403 -0
- package/lib/Utils/history.js +134 -0
- package/lib/Utils/identity-change-handler.js +50 -0
- package/lib/Utils/index.js +23 -0
- package/lib/Utils/link-preview.js +85 -0
- package/lib/Utils/logger.js +3 -0
- package/lib/Utils/lt-hash.js +8 -0
- package/lib/Utils/make-mutex.js +33 -0
- package/lib/Utils/message-composer.js +273 -0
- package/lib/Utils/message-retry-manager.js +265 -0
- package/lib/Utils/messages-media.js +788 -0
- package/lib/Utils/messages.js +1260 -0
- package/lib/Utils/noise-handler.js +201 -0
- package/lib/Utils/offline-node-processor.js +40 -0
- package/lib/Utils/pre-key-manager.js +106 -0
- package/lib/Utils/process-message.js +630 -0
- package/lib/Utils/reporting-utils.js +258 -0
- package/lib/Utils/signal.js +201 -0
- package/lib/Utils/stanza-ack.js +38 -0
- package/lib/Utils/sync-action-utils.js +49 -0
- package/lib/Utils/tc-token-utils.js +163 -0
- package/lib/Utils/use-multi-file-auth-state.js +121 -0
- package/lib/Utils/validate-connection.js +203 -0
- package/lib/WABinary/constants.js +1301 -0
- package/lib/WABinary/decode.js +262 -0
- package/lib/WABinary/encode.js +220 -0
- package/lib/WABinary/generic-utils.js +204 -0
- package/lib/WABinary/index.js +6 -0
- package/lib/WABinary/jid-utils.js +98 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.js +10 -0
- package/lib/WAM/constants.js +22853 -0
- package/lib/WAM/encode.js +150 -0
- package/lib/WAM/index.js +4 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
- package/lib/WAUSync/Protocols/index.js +6 -0
- package/lib/WAUSync/USyncQuery.js +98 -0
- package/lib/WAUSync/USyncUser.js +31 -0
- package/lib/WAUSync/index.js +4 -0
- package/lib/index.js +28 -0
- package/package.json +140 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Adhiraj Singh
|
|
4
|
+
Copyright (c) 2022-2026 WhiskeySockets and Baileys contributors
|
|
5
|
+
Copyright (c) 2026 t.me/Prasszxd2 (modifications maintenance)
|
|
6
|
+
|
|
7
|
+
This software ("t.me/Prasszxd2") is a derivative work based on Baileys
|
|
8
|
+
(https://github.com/WhiskeySockets/Baileys), originally created by Adhiraj Singh
|
|
9
|
+
and maintained by the WhiskeySockets community, licensed under the MIT License.
|
|
10
|
+
The original copyright notice above is retained as required by the MIT License.
|
|
11
|
+
Modifications, rebranding, and additional changes in this fork are
|
|
12
|
+
Copyright (c) 2026 t.me/Prasszxd2.
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,480 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="https://f.top4top.io/p_3923irgvq1.jpg" width="500">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<br><br>
|
|
6
|
+
|
|
7
|
+
# prastzyy
|
|
8
|
+
|
|
9
|
+
### Lightweight WhatsApp Web Library
|
|
10
|
+
|
|
11
|
+
Library WhatsApp ringan berbasis **Baileys**, dikembangkan dan dipelihara oleh **@Prasszxd2** dengan fokus pada koneksi WhatsApp Web, message handling, raw message relay, dan berbagai utilitas tambahan.
|
|
12
|
+
|
|
13
|
+
<br>
|
|
14
|
+
|
|
15
|
+
[](https://nodejs.org/)
|
|
16
|
+
[](https://github.com/WhiskeySockets/Baileys)
|
|
17
|
+
[](LICENSE)
|
|
18
|
+
[](https://www.npmjs.com/)
|
|
19
|
+
|
|
20
|
+
<br>
|
|
21
|
+
|
|
22
|
+
**prastzyy · WhatsApp Web Library**
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
> [!NOTE]
|
|
29
|
+
> **prastzyy tidak berafiliasi dengan WhatsApp atau Meta.**
|
|
30
|
+
>
|
|
31
|
+
> Gunakan library ini secara bertanggung jawab dan selalu ikuti Terms of Service WhatsApp.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## ✦ Features
|
|
36
|
+
|
|
37
|
+
### Connection
|
|
38
|
+
|
|
39
|
+
- WhatsApp Web connection
|
|
40
|
+
- QR Code authentication
|
|
41
|
+
- Pairing Code authentication
|
|
42
|
+
- Multi-device authentication
|
|
43
|
+
- Automatic credential persistence
|
|
44
|
+
- Connection event handling
|
|
45
|
+
|
|
46
|
+
### Messaging
|
|
47
|
+
|
|
48
|
+
- `sendMessage`
|
|
49
|
+
- `relayMessage`
|
|
50
|
+
- Raw message support
|
|
51
|
+
- Custom message structures
|
|
52
|
+
- Text messages
|
|
53
|
+
- Image messages
|
|
54
|
+
- Video messages
|
|
55
|
+
- Message event handling
|
|
56
|
+
|
|
57
|
+
### Relay
|
|
58
|
+
|
|
59
|
+
- Raw message relay
|
|
60
|
+
- Custom relay structure
|
|
61
|
+
- `SelfMe` relay option
|
|
62
|
+
- Direct message object handling
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Installation
|
|
67
|
+
|
|
68
|
+
Install **prastzyy** menggunakan npm:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm install prastzyy
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Atau gunakan sebagai alias untuk package Baileys:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@whiskeysockets/baileys": "npm:prastzyy@1.0.0"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Dengan metode alias tersebut, source code yang menggunakan:
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
require("@whiskeysockets/baileys")
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
tetap dapat digunakan tanpa perlu mengganti seluruh import di project.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Quick Start
|
|
95
|
+
|
|
96
|
+
```js
|
|
97
|
+
const makeWASocket =
|
|
98
|
+
require("@whiskeysockets/baileys").default
|
|
99
|
+
|
|
100
|
+
const {
|
|
101
|
+
useMultiFileAuthState
|
|
102
|
+
} = require("@whiskeysockets/baileys")
|
|
103
|
+
|
|
104
|
+
async function start() {
|
|
105
|
+
const { state, saveCreds } =
|
|
106
|
+
await useMultiFileAuthState("./session")
|
|
107
|
+
|
|
108
|
+
const sock = makeWASocket({
|
|
109
|
+
auth: state
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
sock.ev.on("creds.update", saveCreds)
|
|
113
|
+
|
|
114
|
+
sock.ev.on(
|
|
115
|
+
"connection.update",
|
|
116
|
+
({ connection }) => {
|
|
117
|
+
console.log("Connection:", connection)
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
start()
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
# Messaging
|
|
128
|
+
|
|
129
|
+
## Text Message
|
|
130
|
+
|
|
131
|
+
```js
|
|
132
|
+
await sock.sendMessage(
|
|
133
|
+
"628xxxxxxxxxx@s.whatsapp.net",
|
|
134
|
+
{
|
|
135
|
+
text: "Hello from prastzyy"
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Image Message
|
|
143
|
+
|
|
144
|
+
```js
|
|
145
|
+
await sock.sendMessage(
|
|
146
|
+
"628xxxxxxxxxx@s.whatsapp.net",
|
|
147
|
+
{
|
|
148
|
+
image: {
|
|
149
|
+
url: "./image.jpg"
|
|
150
|
+
},
|
|
151
|
+
caption: "Hello from prastzyy"
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Video Message
|
|
159
|
+
|
|
160
|
+
```js
|
|
161
|
+
await sock.sendMessage(
|
|
162
|
+
"628xxxxxxxxxx@s.whatsapp.net",
|
|
163
|
+
{
|
|
164
|
+
video: {
|
|
165
|
+
url: "./video.mp4"
|
|
166
|
+
},
|
|
167
|
+
caption: "Hello from prastzyy"
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
# Raw Message Relay
|
|
175
|
+
|
|
176
|
+
`relayMessage()` dapat digunakan untuk mengirim sebuah message object secara langsung.
|
|
177
|
+
|
|
178
|
+
```js
|
|
179
|
+
await sock.relayMessage(
|
|
180
|
+
target,
|
|
181
|
+
message,
|
|
182
|
+
{
|
|
183
|
+
messageId: message.key.id
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## `SelfMe`
|
|
191
|
+
|
|
192
|
+
prastzyy menyediakan opsi:
|
|
193
|
+
|
|
194
|
+
```js
|
|
195
|
+
SelfMe: true
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Contoh:
|
|
199
|
+
|
|
200
|
+
```js
|
|
201
|
+
await sock.relayMessage(
|
|
202
|
+
target,
|
|
203
|
+
message,
|
|
204
|
+
{
|
|
205
|
+
messageId: message.key.id,
|
|
206
|
+
SelfMe: true
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Opsi tersebut merupakan bagian dari implementasi/custom behavior pada library ini untuk mengatur bagaimana message relay diproses oleh client.
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
# Relay Examples
|
|
216
|
+
|
|
217
|
+
## Conversation
|
|
218
|
+
|
|
219
|
+
```js
|
|
220
|
+
await sock.relayMessage(
|
|
221
|
+
jid,
|
|
222
|
+
{
|
|
223
|
+
conversation: "Hello"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
SelfMe: true
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Extended Text
|
|
234
|
+
|
|
235
|
+
```js
|
|
236
|
+
await sock.relayMessage(
|
|
237
|
+
jid,
|
|
238
|
+
{
|
|
239
|
+
extendedTextMessage: {
|
|
240
|
+
text: "Hello"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
SelfMe: true
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
# Events
|
|
252
|
+
|
|
253
|
+
Semua event dapat diakses melalui:
|
|
254
|
+
|
|
255
|
+
```js
|
|
256
|
+
sock.ev
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## Connection Update
|
|
260
|
+
|
|
261
|
+
```js
|
|
262
|
+
sock.ev.on(
|
|
263
|
+
"connection.update",
|
|
264
|
+
({ connection }) => {
|
|
265
|
+
console.log(
|
|
266
|
+
"[ CONNECTION ]",
|
|
267
|
+
connection
|
|
268
|
+
)
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Incoming Messages
|
|
276
|
+
|
|
277
|
+
```js
|
|
278
|
+
sock.ev.on(
|
|
279
|
+
"messages.upsert",
|
|
280
|
+
({ messages }) => {
|
|
281
|
+
for (const message of messages) {
|
|
282
|
+
console.log(
|
|
283
|
+
"Incoming:",
|
|
284
|
+
message.message
|
|
285
|
+
)
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Credentials
|
|
294
|
+
|
|
295
|
+
```js
|
|
296
|
+
sock.ev.on(
|
|
297
|
+
"creds.update",
|
|
298
|
+
saveCreds
|
|
299
|
+
)
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
# Authentication
|
|
305
|
+
|
|
306
|
+
prastzyy menggunakan multi-file authentication state untuk menyimpan session WhatsApp.
|
|
307
|
+
|
|
308
|
+
Contoh struktur session:
|
|
309
|
+
|
|
310
|
+
```text
|
|
311
|
+
session/
|
|
312
|
+
├── creds.json
|
|
313
|
+
├── app-state-sync-key-*.json
|
|
314
|
+
├── app-state-sync-version.json
|
|
315
|
+
└── ...
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Jangan upload session ke repository.
|
|
319
|
+
|
|
320
|
+
Tambahkan:
|
|
321
|
+
|
|
322
|
+
```gitignore
|
|
323
|
+
session/
|
|
324
|
+
node_modules/
|
|
325
|
+
.env
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
# Complete Example
|
|
331
|
+
|
|
332
|
+
```js
|
|
333
|
+
const makeWASocket =
|
|
334
|
+
require("@whiskeysockets/baileys").default
|
|
335
|
+
|
|
336
|
+
const {
|
|
337
|
+
useMultiFileAuthState
|
|
338
|
+
} = require("@whiskeysockets/baileys")
|
|
339
|
+
|
|
340
|
+
async function start() {
|
|
341
|
+
const { state, saveCreds } =
|
|
342
|
+
await useMultiFileAuthState("./session")
|
|
343
|
+
|
|
344
|
+
const sock = makeWASocket({
|
|
345
|
+
auth: state
|
|
346
|
+
})
|
|
347
|
+
|
|
348
|
+
sock.ev.on(
|
|
349
|
+
"creds.update",
|
|
350
|
+
saveCreds
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
sock.ev.on(
|
|
354
|
+
"connection.update",
|
|
355
|
+
({ connection }) => {
|
|
356
|
+
console.log(
|
|
357
|
+
"[ CONNECTION ]",
|
|
358
|
+
connection
|
|
359
|
+
)
|
|
360
|
+
}
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
async function sendText(jid, text) {
|
|
364
|
+
return sock.sendMessage(
|
|
365
|
+
jid,
|
|
366
|
+
{
|
|
367
|
+
text
|
|
368
|
+
}
|
|
369
|
+
)
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
async function relay(jid, message) {
|
|
373
|
+
return sock.relayMessage(
|
|
374
|
+
jid,
|
|
375
|
+
message,
|
|
376
|
+
{
|
|
377
|
+
messageId: message.key.id,
|
|
378
|
+
SelfMe: true
|
|
379
|
+
}
|
|
380
|
+
)
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
await sendText(
|
|
384
|
+
"628xxxxxxxxxx@s.whatsapp.net",
|
|
385
|
+
"Hello from prastzyy!"
|
|
386
|
+
)
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
start()
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
# Recommended Project Structure
|
|
395
|
+
|
|
396
|
+
```text
|
|
397
|
+
my-whatsapp-bot/
|
|
398
|
+
│
|
|
399
|
+
├── session/
|
|
400
|
+
│
|
|
401
|
+
├── index.js
|
|
402
|
+
├── package.json
|
|
403
|
+
├── package-lock.json
|
|
404
|
+
└── .gitignore
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
# Requirements
|
|
410
|
+
|
|
411
|
+
| Requirement | Version |
|
|
412
|
+
|---|---|
|
|
413
|
+
| Node.js | `>= 20` |
|
|
414
|
+
| npm | Latest recommended |
|
|
415
|
+
| WhatsApp | Multi-device enabled |
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
# Disclaimer
|
|
420
|
+
|
|
421
|
+
prastzyy dibuat untuk kebutuhan **development, testing, dan educational purposes**.
|
|
422
|
+
|
|
423
|
+
Developer tidak bertanggung jawab atas:
|
|
424
|
+
|
|
425
|
+
- Penyalahgunaan library
|
|
426
|
+
- Account restrictions
|
|
427
|
+
- Account bans
|
|
428
|
+
- Spam atau abuse
|
|
429
|
+
- Pelanggaran Terms of Service WhatsApp
|
|
430
|
+
- Kerusakan atau kehilangan data akibat penggunaan library
|
|
431
|
+
|
|
432
|
+
Gunakan library ini secara bertanggung jawab.
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
# 👤 Credits
|
|
437
|
+
|
|
438
|
+
<div align="center">
|
|
439
|
+
|
|
440
|
+
### @Prasszxd2
|
|
441
|
+
|
|
442
|
+
**Main Developer & Maintainer**
|
|
443
|
+
|
|
444
|
+
<br>
|
|
445
|
+
|
|
446
|
+
Based on:
|
|
447
|
+
|
|
448
|
+
### Baileys
|
|
449
|
+
|
|
450
|
+
<br>
|
|
451
|
+
|
|
452
|
+
[](https://github.com/Prasszxd2)
|
|
453
|
+
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
# 📄 License
|
|
459
|
+
|
|
460
|
+
This project is released under the **MIT License**.
|
|
461
|
+
|
|
462
|
+
See [`LICENSE`](LICENSE) for more information.
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
<div align="center">
|
|
467
|
+
|
|
468
|
+
<img src="https://img.shields.io/badge/prastzyy-7C3AED?style=for-the-badge">
|
|
469
|
+
|
|
470
|
+
<br><br>
|
|
471
|
+
|
|
472
|
+
### prastzyy
|
|
473
|
+
|
|
474
|
+
**Lightweight WhatsApp Web Library**
|
|
475
|
+
|
|
476
|
+
<br>
|
|
477
|
+
|
|
478
|
+
<sub>Built with Baileys · Maintained by @Prasszxd2</sub>
|
|
479
|
+
|
|
480
|
+
</div>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
yarn pbjs -t static-module --no-beautify -w es6 --no-bundle --no-delimited --no-verify --no-comments -o ./index.js ./WAProto.proto;
|
|
2
|
+
yarn pbjs -t static-module --no-beautify -w es6 --no-bundle --no-delimited --no-verify ./WAProto.proto | yarn pbts --no-comments -o ./index.d.ts -;
|
|
3
|
+
node ./fix-imports.js
|