@ranstech/bails 1.1.3 → 1.1.5
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 +43 -43
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WhatsApp Baileys
|
|
1
|
+
# WhatsApp Baileys RansK2
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<img src="https://img2.pixhost.to/images/8783/741643401_papaqueen.jpg" alt="Thumbnail" />
|
|
@@ -57,7 +57,7 @@ Send group status with version 2
|
|
|
57
57
|
```javascript
|
|
58
58
|
await sock.sendMessage(target, {
|
|
59
59
|
groupStatusMessage: {
|
|
60
|
-
text: "#
|
|
60
|
+
text: "#Ranstech"
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
```
|
|
@@ -68,8 +68,8 @@ Send multiple images in a single album message:
|
|
|
68
68
|
```javascript
|
|
69
69
|
await sock.sendMessage(target, {
|
|
70
70
|
albumMessage: [
|
|
71
|
-
{ image: cihuy, caption: "#
|
|
72
|
-
{ image: { url: "URL IMAGE" }, caption: "#
|
|
71
|
+
{ image: cihuy, caption: "#Ranstech" },
|
|
72
|
+
{ image: { url: "URL IMAGE" }, caption: "#Ranstech" }
|
|
73
73
|
]
|
|
74
74
|
}, { quoted: m });
|
|
75
75
|
```
|
|
@@ -81,14 +81,14 @@ Create and send WhatsApp event invitations:
|
|
|
81
81
|
await sock.sendMessage(target, {
|
|
82
82
|
eventMessage: {
|
|
83
83
|
isCanceled: false,
|
|
84
|
-
name: "#
|
|
85
|
-
description: "#
|
|
84
|
+
name: "#Ranstech",
|
|
85
|
+
description: "#Ranstech",
|
|
86
86
|
location: {
|
|
87
87
|
degreesLatitude: 0,
|
|
88
88
|
degreesLongitude: 0,
|
|
89
|
-
name: "#
|
|
89
|
+
name: "#Ranstech"
|
|
90
90
|
},
|
|
91
|
-
joinLink: "https://call.whatsapp.com/video/
|
|
91
|
+
joinLink: "https://call.whatsapp.com/video/RansK2New",
|
|
92
92
|
startTime: "1763019000",
|
|
93
93
|
endTime: "1763026200",
|
|
94
94
|
extraGuestsAllowed: false
|
|
@@ -102,14 +102,14 @@ Display poll results with vote counts:
|
|
|
102
102
|
```javascript
|
|
103
103
|
await sock.sendMessage(target, {
|
|
104
104
|
pollResultMessage: {
|
|
105
|
-
name: "#
|
|
105
|
+
name: "#Ranstech",
|
|
106
106
|
pollVotes: [
|
|
107
107
|
{
|
|
108
|
-
optionName: "#
|
|
108
|
+
optionName: "#Ranstech",
|
|
109
109
|
optionVoteCount: "112233"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
optionName: "#
|
|
112
|
+
optionName: "#Ranstech",
|
|
113
113
|
optionVoteCount: "1"
|
|
114
114
|
}
|
|
115
115
|
]
|
|
@@ -123,14 +123,14 @@ Send basic interactive messages with copy button functionality:
|
|
|
123
123
|
```javascript
|
|
124
124
|
await sock.sendMessage(target, {
|
|
125
125
|
interactiveMessage: {
|
|
126
|
-
header: "#
|
|
127
|
-
title: "#
|
|
128
|
-
footer: "telegram: @
|
|
126
|
+
header: "#Ranstech",
|
|
127
|
+
title: "#Ranstech",
|
|
128
|
+
footer: "telegram: @RansK2New ",
|
|
129
129
|
buttons: [
|
|
130
130
|
{
|
|
131
131
|
name: "cta_copy",
|
|
132
132
|
buttonParamsJson: JSON.stringify({
|
|
133
|
-
display_text: "#
|
|
133
|
+
display_text: "#Ranstech",
|
|
134
134
|
id: "123456789",
|
|
135
135
|
copy_code: "ABC123XYZ"
|
|
136
136
|
})
|
|
@@ -146,28 +146,28 @@ Send interactive messages with buttons, copy actions, and native flow features:
|
|
|
146
146
|
```javascript
|
|
147
147
|
await sock.sendMessage(target, {
|
|
148
148
|
interactiveMessage: {
|
|
149
|
-
header: "#
|
|
150
|
-
title: "#
|
|
151
|
-
footer: "telegram: @
|
|
149
|
+
header: "#Ranstech",
|
|
150
|
+
title: "#Ranstech",
|
|
151
|
+
footer: "telegram: @RansK2New",
|
|
152
152
|
image: { url: "https://example.com/image.jpg" },
|
|
153
153
|
nativeFlowMessage: {
|
|
154
154
|
messageParamsJson: JSON.stringify({
|
|
155
155
|
limited_time_offer: {
|
|
156
156
|
text: "idk hummmm?",
|
|
157
|
-
url: "https://t.me/
|
|
158
|
-
copy_code: "#
|
|
157
|
+
url: "https://t.me/RansK2New",
|
|
158
|
+
copy_code: "#Ranstech",
|
|
159
159
|
expiration_time: Date.now() * 999
|
|
160
160
|
},
|
|
161
161
|
bottom_sheet: {
|
|
162
162
|
in_thread_buttons_limit: 2,
|
|
163
163
|
divider_indices: [1, 2, 3, 4, 5, 999],
|
|
164
|
-
list_title: "#
|
|
165
|
-
button_title: "#
|
|
164
|
+
list_title: "#Ranstech",
|
|
165
|
+
button_title: "#Ranstech"
|
|
166
166
|
},
|
|
167
167
|
tap_target_configuration: {
|
|
168
168
|
title: " X ",
|
|
169
169
|
description: "bomboclard",
|
|
170
|
-
canonical_url: "https://t.me/
|
|
170
|
+
canonical_url: "https://t.me/RansK2New",
|
|
171
171
|
domain: "shop.example.com",
|
|
172
172
|
button_index: 0
|
|
173
173
|
}
|
|
@@ -188,14 +188,14 @@ await sock.sendMessage(target, {
|
|
|
188
188
|
{
|
|
189
189
|
name: "single_select",
|
|
190
190
|
buttonParamsJson: JSON.stringify({
|
|
191
|
-
title: "#
|
|
191
|
+
title: "#Ranstech",
|
|
192
192
|
sections: [
|
|
193
193
|
{
|
|
194
194
|
title: "title",
|
|
195
195
|
highlight_label: "label",
|
|
196
196
|
rows: [
|
|
197
197
|
{
|
|
198
|
-
title: "@
|
|
198
|
+
title: "@RansK2New",
|
|
199
199
|
description: "love you",
|
|
200
200
|
id: "row_2"
|
|
201
201
|
}
|
|
@@ -225,9 +225,9 @@ Send interactive messages with thumbnail image and copy button:
|
|
|
225
225
|
```javascript
|
|
226
226
|
await sock.sendMessage(target, {
|
|
227
227
|
interactiveMessage: {
|
|
228
|
-
header: "#
|
|
229
|
-
title: "#
|
|
230
|
-
footer: "telegram: @
|
|
228
|
+
header: "#Ranstech",
|
|
229
|
+
title: "#Ranstech",
|
|
230
|
+
footer: "telegram: @RansK2New",
|
|
231
231
|
image: { url: "https://example.com/image.jpg" },
|
|
232
232
|
buttons: [
|
|
233
233
|
{
|
|
@@ -278,12 +278,12 @@ Send interactive messages with document from buffer (file system) - **Note: Docu
|
|
|
278
278
|
```javascript
|
|
279
279
|
await sock.sendMessage(target, {
|
|
280
280
|
interactiveMessage: {
|
|
281
|
-
header: "#
|
|
282
|
-
title: "#
|
|
283
|
-
footer: "telegram: @
|
|
281
|
+
header: "#Ranstech",
|
|
282
|
+
title: "#Ranstech",
|
|
283
|
+
footer: "telegram: @RansK2New",
|
|
284
284
|
document: fs.readFileSync("./package.json"),
|
|
285
285
|
mimetype: "application/pdf",
|
|
286
|
-
fileName: "
|
|
286
|
+
fileName: "RansK2New.pdf",
|
|
287
287
|
jpegThumbnail: fs.readFileSync("./document.jpeg"),
|
|
288
288
|
contextInfo: {
|
|
289
289
|
mentionedJid: [target],
|
|
@@ -291,12 +291,12 @@ await sock.sendMessage(target, {
|
|
|
291
291
|
isForwarded: false
|
|
292
292
|
},
|
|
293
293
|
externalAdReply: {
|
|
294
|
-
title: "#
|
|
295
|
-
body: "#
|
|
294
|
+
title: "#Ranstech",
|
|
295
|
+
body: "#Ranstech",
|
|
296
296
|
mediaType: 3,
|
|
297
297
|
thumbnailUrl: "https://example.com/image.jpg",
|
|
298
298
|
mediaUrl: " X ",
|
|
299
|
-
sourceUrl: "https://t.me/
|
|
299
|
+
sourceUrl: "https://t.me/RansK2New",
|
|
300
300
|
showAdAttribution: true,
|
|
301
301
|
renderLargerThumbnail: false
|
|
302
302
|
},
|
|
@@ -305,8 +305,8 @@ await sock.sendMessage(target, {
|
|
|
305
305
|
name: "cta_url",
|
|
306
306
|
buttonParamsJson: JSON.stringify({
|
|
307
307
|
display_text: "Telegram",
|
|
308
|
-
url: "https://t.me/
|
|
309
|
-
merchant_url: "https://t.me/
|
|
308
|
+
url: "https://t.me/RansK2New",
|
|
309
|
+
merchant_url: "https://t.me/RansK2New"
|
|
310
310
|
})
|
|
311
311
|
}
|
|
312
312
|
]
|
|
@@ -320,20 +320,20 @@ Send interactive messages with document from buffer (file system) without contex
|
|
|
320
320
|
```javascript
|
|
321
321
|
await sock.sendMessage(target, {
|
|
322
322
|
interactiveMessage: {
|
|
323
|
-
header: "#
|
|
324
|
-
title: "#
|
|
325
|
-
footer: "telegram: @
|
|
323
|
+
header: "#Ranstech",
|
|
324
|
+
title: "#Ranstech",
|
|
325
|
+
footer: "telegram: @RansK2New",
|
|
326
326
|
document: fs.readFileSync("./package.json"),
|
|
327
327
|
mimetype: "application/pdf",
|
|
328
|
-
fileName: "
|
|
328
|
+
fileName: "RansK2New.pdf",
|
|
329
329
|
jpegThumbnail: fs.readFileSync("./document.jpeg"),
|
|
330
330
|
buttons: [
|
|
331
331
|
{
|
|
332
332
|
name: "cta_url",
|
|
333
333
|
buttonParamsJson: JSON.stringify({
|
|
334
334
|
display_text: "Telegram",
|
|
335
|
-
url: "https://t.me/
|
|
336
|
-
merchant_url: "https://t.me/
|
|
335
|
+
url: "https://t.me/RansK2New",
|
|
336
|
+
merchant_url: "https://t.me/RansK2New"
|
|
337
337
|
})
|
|
338
338
|
}
|
|
339
339
|
]
|