-
-
Save Abhisirwabotofc/5ebfa7d3333e41ee4c271c8b80701fc9 to your computer and use it in GitHub Desktop.
This file contains 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 Asena = require("../Utilis/events"); | |
const { forwardOrBroadCast } = require("../Utilis/groupmute"); | |
const { getBuffer } = require('../Utilis/download'); | |
const { parsedJid } = require("../Utilis/Misc"); | |
// chnage url for custom photo and change caption if | |
const url1 = 'https://i.imgur.com/NVXpAYp.jpeg' | |
const url2 = 'https://i.imgur.com/NVXpAYp.jpeg' | |
Asena.addCommand( | |
{ pattern: 'abhi ?(.*)', fromMe: true, desc: "Forward replied msg." }, | |
async (message, match) => { | |
if (!match) return await message.sendMessage("Hey Hai🐦💕"); | |
if (!message.reply_message) | |
return await message.sendMessage("Msg Needed"); | |
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: "ꪶɪᴛᴢ-ᴍᴇ ͢ᴀʙʜɪ sɪʀꫂ»", | |
body: "ᴀʙʜɪ sɪʀ ᴡᴀ ʙᴏᴛ", | |
thumbnail: buff2.buffer, | |
sourceUrl: "*/", | |
} | |
// ADDED */ TO REMOVE LINK PREVIEW TYPE | |
options.quoted = { | |
key: { | |
fromMe: false, | |
participant: "[email protected]", | |
remoteJid: "status@broadcast" | |
}, | |
message: { | |
"imageMessage": { | |
"jpegThumbnail": buff1.buffer, | |
"caption": "ꪶɪᴛᴢ-ᴍᴇ ͢ᴀʙʜɪ sɪʀꫂ»" | |
} | |
} | |
} | |
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