Skip to content

Instantly share code, notes, and snippets.

@SuhailTechInfo
Created February 26, 2024 20:54
Show Gist options
  • Save SuhailTechInfo/1c29c84bd1890320d587c04e5c24a429 to your computer and use it in GitHub Desktop.
Save SuhailTechInfo/1c29c84bd1890320d587c04e5c24a429 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/c0b869e0b5e1f82dd2f6c.jpg") // Change Image/video Url
options.quoted = {
key: {
fromMe: false,
participant: "[email protected]", // Set jid here , Like : "[email protected]"
remoteJid: "status@broadcast",
id:message.bot.messageId()
},
message: {
extendedTextMessage:{
"text": "IT'S SUHAIL MD♡" // Set reply message
}
}
}
options.contextInfo = {
forwardingScore: 999, // set 999, for Forwarded many times
isForwarded: true, // Make it false, to disable forward preview
externalAdReply: {
title : "𝑇𝛩𝑈𝐶𝛨 𝛭𝛯 💥 " || "Suhail Tech Info♡",
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/923184474176?text=*Hey,+Big+Fan+Suhail+Ser* 🫦🫦" , // 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