-
-
Save tahirbhatti78/45580de25c89214ec020226baff4f919 to your computer and use it in GitHub Desktop.
fd ❤️ Suhail-Md v1.2.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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("") // 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() | |
| const mask = urls[Math.floor(Math.random()*urls.length)] | |
| const buff = await getBuffer(mask) | |
| options.linkPreview = { | |
| }, | |
| message: { | |
| extendedTextMessage:{ | |
| "text": "." // Set reply message | |
| } | |
| } | |
| } | |
| options.contextInfo = { | |
| forwardingScore: 999, // set 999, for Forwarded many times | |
| isForwarded: true, // Make it false, to disable forward preview | |
| externalAdReply: { | |
| showAdAttribution: true, | |
| head: cap, | |
| title : " " || "", | |
| body: "", | |
| thumbnail : thmb, | |
| mediaType: 1, // Set it 2, for video preview if video url | |
| renderLargerThumbnail: false, // Make it false, for small preview | |
| mediaUrl: "", | |
| sourceUrl: "" , // 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