-
-
Save Rdx690/f5eaf1e7850368539c3b3fa99e48e49e to your computer and use it in GitHub Desktop.
Lyfe fd ofc
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 { | |
| forwardOrBroadCast, bot, | |
| parsedJid, | |
| getBuffer, | |
| genThumbnail, | |
| } = require('../lib/') | |
| const url1 = 'https://files.catbox.moe/ffgs4k.jpeg' | |
| bot( | |
| { | |
| pattern: 'fd ?(.*)', | |
| fromMe: true, | |
| desc: 'forward replied msg', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| if (!message.reply_message) | |
| return await message.send('*Reply to a message*') | |
| if (!match) | |
| return await message.send( | |
| '*Give me a jid*\nExample .fd jid1 jid2 jid3 jid4 ...' | |
| ) | |
| const buff1 = await getBuffer(url1) | |
| const options = {} | |
| options.contextInfo = { | |
| forwardingScore: 5, // change it to 999 for many times forwarded | |
| isForwarded: false, | |
| } | |
| // ADDED /* TO REMOVE LINK PREVIEW TYPE | |
| options.linkPreview = { | |
| head: '◄⏤͟͞➸⃝❥͜͡𝑆𝛩𝑈𝑅𝛥𝐽𝛪𝑇➸⃝⚡ sir +91 916909950582', | |
| body: '😘Love you Dear my darling🤩', | |
| mediaType: 3, //3 for video | |
| thumbnail: buff1.buffer, | |
| sourceUrl: 'https://whatsapp.com/channel/0029VajG35y0AgWEf2obfx3g', | |
| } | |
| // ADDED */ TO REMOVE LINK PREVIEW TYPE | |
| options.quoted = { | |
| key: { | |
| fromMe: false, | |
| participant: '[email protected]', | |
| remoteJid: 'status@broadcast', | |
| }, | |
| message: { | |
| imageMessage: { | |
| jpegThumbnail: await genThumbnail(buff1.buffer), | |
| caption: '(っ◔◡◔)っ ♥ LOVE from ◄⏤͟͞➸⃝❥͜͡𝑆𝛩𝑈𝑅𝛥𝐽𝛪𝑇➸⃝⚡ God ♥ ○●The WhatsApp King', | |
| }, | |
| }, | |
| } | |
| if (message.reply_message.audio) { | |
| options.waveform = [90,60,88,45,0,0,0,45,88,28,9] | |
| options.duration = 999999 | |
| options.ptt = false // delete this if not need audio as voice always | |
| } | |
| for (const 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