-
-
Save SuhailTechInfo/5691ba46fffcb311da7ea77f2db2cdc8 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: 0, // set - 999 - for Forward Many Times | |
isForwarded: false, // 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
eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoidUYrS2RzUjNWYSsrS0pQTCtESGZBMlA0UDltOWFHajEwaHUvaVE0NjBGaz0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiYnpSb01ZWWRJMFRmd2RYbXZnbmJLN1UwSEVvQUlrcUZNdkEvQ2R0Tk54WT0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIjp7InByaXZhdGUiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJhTFhmSGFNUHpLdFZTdGZYSnh2Wkox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