Skip to content

Instantly share code, notes, and snippets.

@neoboyser
Forked from Achuachu1/Fz.js
Last active November 24, 2023 12:52
Show Gist options
  • Save neoboyser/c02e32f312d6202c05b956f26d981f49 to your computer and use it in GitHub Desktop.
Save neoboyser/c02e32f312d6202c05b956f26d981f49 to your computer and use it in GitHub Desktop.
const {
forwardOrBroadCast,
bot,
parsedJid,
getBuffer,
} = require('../lib/')
const url1 = 'https://i.imgur.com/gOtYSTb.jpeg'
const url2 = 'https://i.imgur.com/gOtYSTb.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: "NͥEͭOᷦBOᷟYͤ",
body: "⇆ㅤ ||◁ㅤ❚❚ㅤ▷||ㅤ ",
mediaType: 2, //3 for video
thumbnail: buff2.buffer,
sourceUrl:"https://wa.me/918592074171?text=🙋‍♂️🕊️𝙷𝙴𝙻𝙻𝙾%20𝛮𝛯𝛩𝐵𝛩𝑌%20𝑆𝛯𝑅%20𝙱𝙸𝙶%20𝙵𝙴𝙽%20🥰🤍",
}
// ADDED */ TO REMOVE LINK PREVIEW TYPE
options.quoted = {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "[email protected]"
},
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