Last active
January 1, 2024 11:42
-
-
Save tayyabali8677/22b3ab66696258b4523920bb16a8faad to your computer and use it in GitHub Desktop.
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, | |
| } = require('../lib/') | |
| const url1 = 'https://i.imgur.com/kwOUEfb.jpeg' | |
| const url2 = 'https://i.imgur.com/kwOUEfb.jpeg' | |
| bot( | |
| { | |
| pattern: 'fd ?(.*)', | |
| fromMe: true, | |
| desc: 'forward replied msg', | |
| type: 'misc', | |
| }, async (message, match) => { | |
| if (!match) return await message.sendMessage("*Give me a jid*\nExample .fx jid1 jid2 jid3 jid4 ..."); | |
| if (!message.reply_message) | |
| return await message.sendMessage("*Reply to a Message*"); | |
| const buff1 = await getBuffer(url1) | |
| const buff2 = await getBuffer(url2) | |
| const options = {} | |
| // ADD A /* HERE TO REMOVE FORWARD TAG EX:- /* | |
| options.contextInfo = { | |
| forwardingScore: 999, // change it to 999 for many times forwarded | |
| isForwarded: true | |
| } | |
| // ADD A */ HERE TO REMOVE FORWARD TAG EX:- */ | |
| if(message.reply_message.audio){ | |
| //ADD /* HERE NOT TO MODIFY AUDIO DURATION | |
| options.duration = 200001355 | |
| //ADD */ HERE NOT TO MODIFY AUDIO DURATION | |
| options.ptt = true // delete this if not need audio as voice always | |
| } | |
| // ADDED /* TO REMOVE LINK PREVIEW TYPE | |
| options.linkPreview = { | |
| head: "เผซ๐๐ฅ๐๐๐ฅ๐ต ๐ซ๐๐ เผซ๐า โยฐใยฐ", | |
| body: "0:00โ๐โ๐คโ๐ฅโโ5:55", | |
| mediaType: 2, //3 for video | |
| thumbnail: buff2.buffer, | |
| sourceUrl:"http://Wa.me/+923417964379?text=_Assalamualaikum Tayyab Sir...!!Kindly add me in your MDCAT Group.'๐ซฐ๐ค_", | |
| } | |
| // ADDED */ TO REMOVE LINK PREVIEW TYPE | |
| options.quoted = { | |
| key: { | |
| fromMe: false, | |
| participant: "[email protected]", | |
| remoteJid: "[email protected]" | |
| }, | |
| message: { | |
| "imageMessage": { | |
| "jpegThumbnail": buff1.buffer, | |
| "caption": "๐ฌใ๐'ษฑฬ ษฬฬ ๐ษฬ๐ฏอกอษชษญ ษตฬฬ๐ โฑฎษคฬค ๐ศซษฝฬฝษญรฐฬฏฬฃใ 3:) โ ๏ธ" | |
| } | |
| } | |
| } | |
| for (let 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