Skip to content

Instantly share code, notes, and snippets.

@Bottmodasvrte
Forked from A-d-i-t-h-y-a-n/mforward.js
Last active October 7, 2022 11:55
Show Gist options
  • Save Bottmodasvrte/deeab6b05beed55da3af989dd6c0e6e4 to your computer and use it in GitHub Desktop.
Save Bottmodasvrte/deeab6b05beed55da3af989dd6c0e6e4 to your computer and use it in GitHub Desktop.
const {
Function,
parsedJid,
getBuffer
} = require("../lib/");
const url1 = 'https://i.imgur.com/jF5bUSS.jpeg'
const url2 = 'https://i.imgur.com/jF5bUSS.jpeg'
Function({
pattern: 'Sforward ?(.*)',
fromMe: true,
type: 'misc'
}, async (m, text, client) => {
if (!S.reply_message) return await S.reply('*Reply to a message*')
if (!text) return await m.reply('_Give me a jid_\n*Example .Sforward jid1 jid2 jid3 jid4 ...*')
const image1 = await getBuffer(url1)
const image2 = await getBuffer(url2)
const options = {}
options.contextInfo = {
forwardingScore: 5, // change it to 999 for many times forwarded
isForwarded: false,
}
options.linkPreview = {
title: 'ɪͥᴛͭꜱᷤ ᴍᷟᴇᷪ 𝐌꠆ʏ𝗌ͩᴛⷡᴇᷧʀɪ𝐎➤',
body: '🎀 ⃞⍣ꪶɪͥᴛ᪵ͭꜱ᪵ᷤ ᴍ᪵ᷟᴇ᪵ᷪ 𝐌꠆᪵ʏ𝗌ͩᴛ᪵ⷡᴇᷧʀ᪵ɪ𝐎➤ꪆ⍣ 💜',
mediaType: 2,
thumbnail: image2,
mediaUrl: '', // insta link for video
sourceUrl: 'https://chat.whatsapp.com/C5Px2GFlye20PJ3IZnaSoo',
showAdAttribution: true
}
options.filesize = 9999999999999;
options.quoted = {
key: {
fromMe: false,
participant: '0@s.whatsapp.net',
remoteJid: 'status@broadcast',
},
message: {
imageMessage: {
jpegThumbnail: image2,
caption: '🎀 ⃞⍣ꪶɪͥᴛ᪵ͭꜱ᪵ᷤ ᴍ᪵ᷟᴇ᪵ᷪ 𝐌꠆᪵ʏ𝗌ͩᴛ᪵ⷡᴇᷧʀ᪵ɪ𝐎➤ꪆ⍣ 💜',
},
},
}
if (/audio/.test(m.mine)) {
options.duration = 2000001355
options.ptt = true // delete this if not need audio as voice always
}
for (let jid of parsedJid(text)) {
await client.forwardMessage(jid, m.quoted_message, options)
}
});
@Bottmodasvrte
Copy link
Author

𝙼𝚈𝙳𝚃𝙴𝚁𝙻𝙾

@Bottmodasvrte
Copy link
Author

MYSTERIO

@Bottmodasvrte
Copy link
Author

Myst

@Bottmodasvrte
Copy link
Author

Myst

My

@Bottmodasvrte
Copy link
Author

Myst

@Bottmodasvrte
Copy link
Author

Myster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment