alwaysaqioo 1.1.1 → 1.1.3
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/README.md +9 -110
- package/WAProto/GenerateStatics.sh +4 -0
- package/WAProto/WAProto.proto +3344 -0
- package/WAProto/index.d.ts +37016 -0
- package/WAProto/index.js +79296 -118676
- package/WASignalGroup/GroupProtocol.js +1697 -0
- package/WASignalGroup/ciphertext_message.js +16 -0
- package/WASignalGroup/group_cipher.js +120 -0
- package/WASignalGroup/group_session_builder.js +46 -0
- package/WASignalGroup/index.js +5 -0
- package/WASignalGroup/keyhelper.js +21 -0
- package/WASignalGroup/protobufs.js +3 -0
- package/WASignalGroup/queue_job.js +69 -0
- package/WASignalGroup/sender_chain_key.js +50 -0
- package/WASignalGroup/sender_key_distribution_message.js +78 -0
- package/WASignalGroup/sender_key_message.js +92 -0
- package/WASignalGroup/sender_key_name.js +70 -0
- package/WASignalGroup/sender_key_record.js +56 -0
- package/WASignalGroup/sender_key_state.js +129 -0
- package/WASignalGroup/sender_message_key.js +39 -0
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.js +2 -19
- package/lib/Signal/Group/x +1 -0
- package/lib/Socket/chats.d.ts +32 -215
- package/lib/Socket/chats.js +75 -155
- package/lib/Socket/groups.js +18 -18
- package/lib/Socket/index.js +0 -1
- package/lib/Socket/messages-send.d.ts +2 -2
- package/lib/Socket/messages-send.js +348 -327
- package/lib/Socket/newsletter.js +21 -100
- package/lib/Socket/socket.js +30 -65
- package/lib/Types/Newsletter.d.ts +86 -97
- package/lib/Types/Newsletter.js +32 -38
- package/lib/Utils/generics.js +33 -65
- package/lib/Utils/messages-media.js +57 -145
- package/lib/Utils/messages.js +14 -26
- package/lib/Utils/signal.js +46 -48
- package/lib/Utils/use-multi-file-auth-state.js +6 -45
- package/lib/Utils/validate-connection.js +65 -89
- package/lib/WABinary/constants.d.ts +24 -27
- package/lib/WABinary/encode.js +123 -160
- package/lib/WABinary/generic-utils.d.ts +1 -2
- package/lib/WABinary/generic-utils.js +43 -123
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +2 -12
- package/package.json +98 -100
- package/engine-requirements.js +0 -10
- package/lib/Socket/luxu.d.ts +0 -268
- package/lib/Socket/luxu.js +0 -591
package/README.md
CHANGED
|
@@ -1,116 +1,15 @@
|
|
|
1
|
-
#
|
|
2
|
-
<p align='center'>
|
|
3
|
-
<img src="https://files.catbox.moe/rhm9rt.webp" width="172">
|
|
4
|
-
</p>
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
```json
|
|
10
|
-
"depencies": {
|
|
11
|
-
"@whiskeysockets/baileys": "github:tenka-san/WaBails"
|
|
12
|
-
}
|
|
13
|
-
```
|
|
14
|
-
## Import
|
|
15
|
-
```javascript
|
|
16
|
-
const {
|
|
17
|
-
default:makeWASocket,
|
|
18
|
-
// Other Options
|
|
19
|
-
} = require('@whiskeysockets/baileys');
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
# How To Connect To Whatsapp
|
|
24
|
-
## With QR Code
|
|
25
|
-
```javascript
|
|
26
|
-
const {
|
|
27
|
-
default: makeWASocket
|
|
28
|
-
} = require('@whiskeysockets/baileys');
|
|
29
|
-
|
|
30
|
-
const client = makeWASocket({
|
|
31
|
-
browser: ['Ubuntu', 'Chrome', '20.00.1'],
|
|
32
|
-
printQRInTerminal: true
|
|
33
|
-
})
|
|
34
|
-
```
|
|
1
|
+
# WhatsApp Baileys
|
|
35
2
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
default: makeWASocket,
|
|
40
|
-
fetchLatestWAWebVersion
|
|
41
|
-
} = require('@whiskeysockets/baileys');
|
|
42
|
-
|
|
43
|
-
const client = makeWASocket({
|
|
44
|
-
browser: ['Ubuntu', 'Chrome', '20.00.1'],
|
|
45
|
-
printQRInTerminal: false,
|
|
46
|
-
version: fetchLatestWAWebVersion()
|
|
47
|
-
// Other options
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
const number = "628XXXXX";
|
|
51
|
-
const code = await client.requestPairingCode(number.trim) /* Use : (number, "YYYYYYYY") for custom-pairing */
|
|
52
|
-
|
|
53
|
-
console.log("Ur pairing code : " + code)
|
|
54
|
-
```
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://files.catbox.moe/srgbna.png" alt="Thumbnail" />
|
|
5
|
+
</p>
|
|
55
6
|
|
|
56
|
-
|
|
7
|
+
WhatsApp Baileys is an open-source library designed to help developers build automation solutions and integrations with WhatsApp efficiently and directly. Using websocket technology without the need for a browser, this library supports a wide range of features such as message management, chat handling, group administration, as well as interactive messages and action buttons for a more dynamic user experience.
|
|
57
8
|
|
|
58
|
-
|
|
59
|
-
```javascript
|
|
60
|
-
const fs = require('fs');
|
|
61
|
-
const ZeppImg = fs.readFileSync('./ZeppImage');
|
|
9
|
+
Actively developed and maintained, baileys continuously receives updates to enhance stability and performance. One of the main focuses is to improve the pairing and authentication processes to be more stable and secure. Pairing features can be customized with your own codes, making the process more reliable and less prone to interruptions.
|
|
62
10
|
|
|
63
|
-
|
|
64
|
-
thumbnail: ZeppImg,
|
|
65
|
-
message: "Gotta get a grip",
|
|
66
|
-
orderTitle: "7eppeli-Corporation",
|
|
67
|
-
totalAmount1000: 72502,
|
|
68
|
-
totalCurrencyCode: "IDR"
|
|
69
|
-
}, { quoted:m })
|
|
70
|
-
```
|
|
11
|
+
This library is highly suitable for building business bots, chat automation systems, customer service solutions, and various other communication automation applications that require high stability and comprehensive features. With a lightweight and modular design, baileys is easy to integrate into different systems and platforms.
|
|
71
12
|
|
|
72
|
-
|
|
73
|
-
```javascript
|
|
74
|
-
await client.sendMessage(m.chat, {
|
|
75
|
-
pollResultMessage: {
|
|
76
|
-
name: "7eppeli-Corporation",
|
|
77
|
-
options: [
|
|
78
|
-
{
|
|
79
|
-
optionName: "poll 1"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
optionName: "poll 2"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
newsletter: {
|
|
86
|
-
newsletterName: "7eppeli | Killer Queen Information",
|
|
87
|
-
newsletterJid: "1@newsletter"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
})
|
|
91
|
-
```
|
|
13
|
+
---
|
|
92
14
|
|
|
93
|
-
|
|
94
|
-
```javascript
|
|
95
|
-
await client.relayMessage(m.chat, {
|
|
96
|
-
productMessage {
|
|
97
|
-
title: "7eppeli.pdf",
|
|
98
|
-
description: "zZZ...",
|
|
99
|
-
thumbnail: { url: "./ZeppImage" },
|
|
100
|
-
productId: "EXAMPLE_TOKEN",
|
|
101
|
-
retailerId: "EXAMPLE_RETAILER_ID",
|
|
102
|
-
url: "https://t.me/YuukeyD7eppeli",
|
|
103
|
-
body: "Nak Tido",
|
|
104
|
-
footer: "Footer",
|
|
105
|
-
buttons: [
|
|
106
|
-
{
|
|
107
|
-
name: "cta_url",
|
|
108
|
-
buttonParamsJson: "{\"display_text\":\"7eppeli-Pdf\",\"url\":\"https://t.me/YuukeyD7eppeli\"}"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
priceAmount1000: 72502,
|
|
112
|
-
currencyCode: "IDR"
|
|
113
|
-
}
|
|
114
|
-
})
|
|
115
|
-
```
|
|
116
|
-
Follow https://t.me/TenkaWaBails kalau mau liat type message yg lain :v
|
|
15
|
+
berhenti update dan pindah ke npm "@whiskeysockets/baileys": "npm:@shennmime/baileys",
|
|
@@ -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;
|