-
-
Save itzmesuhail143/d1e10970b1632a0493d618c64b240f2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
inrl, | |
getBuffer | |
} = require("../lib/"); | |
const url1 = "https://i.imgur.com/tV9ESC6.jpeg" | |
const url2 = "https://i.imgur.com/KirtdMt.jpeg" | |
const title = "๐โ๐โชโช๐๐อข๐ป๐ด๐ผ๐ฟอข โ๐อข๐ธ๐ โโเฟ" | |
const body = "๐แดแด แด ๐s ๐แดsแด ๐ แดแดแดษชษดษข ๐แดแดแด" | |
const mediaurl = "https://www.instagram.com/__s_u_h_a_i_l__s_u_h_a_i_l__?igshid=MzNlNGNkZWQ4Mg==" | |
const source = "https://wa.me/916374437144?text=๐แดสส%20๐แดสแดษชส" | |
const adreply = true | |
const display = "๐แดแดสษชษดษข ๐s ๐แดสแดแดษดแดษดแด๐ฎโ๐จ" | |
const wave = [99,0,99,0,99] | |
inrl({ | |
pattern: 'fd ?(.*)', | |
fromMe: true, | |
type: 'misc' | |
}, async (m, text) => { | |
if (!m.reply_message.msg) return await m.reply('*Reply to a message*') | |
if (!text) return await m.reply('*Give me a jid*\nExample .fd jid1 jid2 jid3 jid4 ...') | |
const image1 = await getBuffer(url1) | |
const image2 = await getBuffer(url2) | |
const options = {} | |
options.contextInfo = { | |
forwardingScore: 5, // change it to 999 for many times forwarded | |
isForwarded: false, | |
} | |
options.linkPreview = { | |
title, | |
body, | |
mediaType: 2, | |
thumbnail: image2, | |
mediaUrl: mediaurl, // insta link for video | |
sourceUrl: source, | |
showAdAttribution: adreply | |
} | |
options.fileLength = 99999999999; | |
options.quoted = { | |
key: { | |
fromMe: false, | |
participant: `[email protected]`, | |
...(m.jid ? { | |
remoteJid: `status@broadcast` | |
} : {}) | |
}, | |
message: { | |
'contactMessage': { | |
'displayName': display, | |
'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;display,;;;\nFN:display,\nitem1.TEL;waid=${m.sender.split('@')[0]}:${m.sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`, | |
'jpegThumbnail': image1 | |
} | |
} | |
} | |
if (/audio/.test(m.client.mime)) { | |
options.duration = 2000001355 | |
options.ptt = true | |
} | |
//options.wave = wave; | |
for (let jid of m.parsedJid(text)) { | |
await m.forwardMessage(jid, m.quoted, options) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment