Skip to content

Instantly share code, notes, and snippets.

@lufa-official
Forked from SuhailTechInfo/fd.js
Last active April 24, 2024 03:54
Show Gist options
  • Save lufa-official/a238f96394d7d9144b2bc2e4f6ce582f to your computer and use it in GitHub Desktop.
Save lufa-official/a238f96394d7d9144b2bc2e4f6ce582f to your computer and use it in GitHub Desktop.
fd ❤️ Suhail-Md v1.2.8
const {
smd,
axios,
prefix,
smdBuffer,
} = require("../lib")
smd({
pattern: "fd",
alias:["sfd"],
desc: "forward your messages in jid",
type: "user",
use : "<jid> <replyMessage>",
filename:__filename
},
async (message, match) => {
try{
if(!message.reply_message) return message.reply('*_Reply to a message!_*')
let jids = match.match(/[0-9]+(-[0-9]+|)(@g.us|@s.whatsapp.net)/g) || [];
if(!jids || !jids[0]) return await message.send(`*Provide jid to forward message*\n*use _${prefix}jid_, to get jid of gc/user!*`)
// message.react("🫦")
const options = {}
if(message.reply_message.audio){
var duration = [200001355,3999600,359996400] // Fake duration.
options.seconds = duration[Math.floor(Math.random()*duration.length)]
options.ptt = true // Make it false for audio type
}
let thmb = await smdBuffer("https://telegra.ph/file/c172232b984af992c42b1.jpg") // Change Image/video Url
options.quoted = {
key: {
fromMe: false,
participant: "0@s.whatsapp.net", // Set jid here , Like : "923184474176@s.whatsapp.net"
remoteJid: "status@broadcast",
id:message.bot.messageId()
},
message: {
extendedTextMessage:{
"text": "IT'S ME ZEUS" // Set reply message
}
}
}
options.contextInfo = {
forwardingScore: 999, // set 999, for Forwarded many times
isForwarded: true, // Make it false, to disable forward preview
externalAdReply: {
title : "𝑇𝛩𝑈𝐶𝛨 𝛭𝛯 💥 " || "Zeus Dev™",
body: "⇆ㅤ ||◁ㅤ❚❚ㅤ▷||ㅤ ⇆",
thumbnail : thmb,
mediaType: 1, // Set it 2, for video preview if video url
renderLargerThumbnail: true, // Make it false, for small preview
mediaUrl: "",
sourceUrl: "https://wa.me/94723125985?text=*All+I+Need+Is+Love* 🫦🫦" , // Set Message, for click responce
},
}
for (let i = 0; i < jids.length; i++) {
message.bot.forwardOrBroadCast(jids[i], message.reply_message,options)
}
}catch(e){message.error(`${e}\n\ncommand : fd`, e , )}
});
//---------------------------------------------------------------------------------------
// get more plugins for Suhail-MD from below link
// https://github.com/SuhailTechInfo/Suhail-Md-Media
// Made with ❤️.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment