Skip to content

Instantly share code, notes, and snippets.

@sanadh55
Forked from itzmesuhail143/Fz.js
Last active December 13, 2023 16:33
Show Gist options
  • Save sanadh55/75b528e6738e7dbe3a4867344d6f4ce0 to your computer and use it in GitHub Desktop.
Save sanadh55/75b528e6738e7dbe3a4867344d6f4ce0 to your computer and use it in GitHub Desktop.
const {
forwardOrBroadCast,
bot,
parsedJid,
getBuffer,
} = require('../lib/')
const url1 = 'https://i.https://i.imgur.com/jKIWKho.jpeg'
const url2 = 'https://i.imgur.com/jKIWKho.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 = 111111;11111;1111
//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: "โ–ถ๏ธŽ โ€ขแŠแŠ||แŠ|แ‹||||แ‹แŠ|โ€ข 0:10"
mediaType: 2, //3 for audio
thumbnail: buff2.buffer,
sourceUrl:"https://wa.me/+918951034300?text=Hแด‡ส๐‘†๐›ฅ๐›ฎ๐›ฅ๐ท๐Ÿค๐ŸŒ"
// 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