-
-
Save itzmesuhail143/3aa5c7554b314be47e08998d51a5e4bc to your computer and use it in GitHub Desktop.
SUHAIL-MD autoForward plug-in
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
//FORK AND USE IT | |
// MESSAGES COLLECT FROM THESE CHATS/GROUPS(FROM) | |
var from = ["[email protected]"] //ex ["jid1" , "jid2" , "jid3"] | |
//MESSAGES SEND TO THESE CHATS/GROUPS(TO) | |
var to = "[email protected] , [email protected] " //ex "jid1, jid2, jid3" | |
let {smd, parsedJid} = require('../lib/'),options = {} | |
options.contextInfo = { | |
forwardingScore: 999, // set - 999 - for Forward Many Times | |
isForwarded: true, // set - true - for Forward Tag | |
} | |
//You can change 👇 this video to audio/sticker/image/text/status | |
smd({ on: 'video' }, async (message, text) => { | |
if (from.includes(message.jid)) { | |
for (jid of parsedJid(to)){ | |
message.bot.forwardOrBroadCast(jid, message, options) | |
} | |
} | |
}) | |
/* | |
smd({ | |
pattern: 'autoforward', | |
fromMe:false, | |
type:"areply", | |
info :"Forward messages from one group to others" | |
}) | |
*/ | |
// POWERED BY SUHAIL-MD | |
// MORE PLUG-INS : https://github.com/SuhailTechInfo/Suhail-Md-Media |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment