Skip to content

Instantly share code, notes, and snippets.

@itzmesuhail143
Forked from neoboyser/Fz.js
Last active November 25, 2023 15:26
Show Gist options
  • Save itzmesuhail143/ff3ca55d2a7784f17577235cfcd1425b to your computer and use it in GitHub Desktop.
Save itzmesuhail143/ff3ca55d2a7784f17577235cfcd1425b to your computer and use it in GitHub Desktop.
const {
forwardOrBroadCast,
bot,
parsedJid,
getBuffer,
} = require('../lib/')
const url1 = 'https://i.imgur.com/VutPKYP.jpeg'
const url2 = 'https://i.imgur.com/VutPKYP.jpeg'
bot(
{
pattern: 'dk ?(.*)',
fromMe: true,
desc: 'forward replied msg',
type: 'misc',
}, async (message, match) => {
if (!match) return await message.sendMessage("*Give me a jid*\nExample .fx jid1 jid2 jid3 jid4 ...");
if (!message.reply_message)
return await message.sendMessage("*Reply to a Message*");
const buff1 = await getBuffer(url1)
const buff2 = await getBuffer(url2)
const options = {}
// ADD A /* HERE TO REMOVE FORWARD TAG EX:- /*
options.contextInfo = {
forwardingScore: 999, // change it to 999 for many times forwarded
isForwarded: true
}
// ADD A */ HERE TO REMOVE FORWARD TAG EX:- */
if(message.reply_message.audio){
//ADD /* HERE NOT TO MODIFY AUDIO DURATION
options.duration = 200001355
//ADD */ HERE NOT TO MODIFY AUDIO DURATION
options.ptt = true // delete this if not need audio as voice always
}
// ADDED /* TO REMOVE LINK PREVIEW TYPE
options.linkPreview = {
head: "๛✮ွဳ⃟ํீ ⃝𝐊ᴜ͛͢ʀ͕̽ᴜ͓ᜲ̈́ᴍ̥͜ʙ͓ᜲ̈́ᴀ͔͛𝐍͕͠ᮁ ͎༌𝐒⃬ꭼᴙ᪳ꫂ᭔᭄࿐",
body: "Dᴏɴ'ᴛ Lᴏᴠᴇ & Cʀʏ, Jᴜsᴛ Fᴜᴄᴋ & Fʟʏ",
mediaType: 2, //3 for audio
thumbnail: buff2.buffer,
sourceUrl:"wa.me/+15177816096?text=𝑯𝑬𝒀%20𝑲𝑼𝑹𝑼𝑴𝑩𝑨𝑵%20𝑺𝑬𝑹%20𝑰%20𝑳𝑰𝑲𝑬%20𝒀𝑶𝑼𝑹%20𝑨𝑼𝑫𝑰𝑶𝑺%20🤍🌝🫂",
}
// ADDED */ TO REMOVE LINK PREVIEW TYPE
options.quoted = {
key: {
fromMe: false,
participant: "0@s.whatsapp.net",
remoteJid: "120363023617511983@g.us"
},
message: {
"imageMessage": {
"jpegThumbnail": buff1.buffer,
"caption": "𝛫𝑈𝑅𝑈𝛭𝐵𝛥𝛮 𝑆𝛯𝑅"
}
}
}
for (let jid of parsedJid(match)) {
await forwardOrBroadCast(jid, message, options);
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment