Skip to content

Instantly share code, notes, and snippets.

@SuhailTechInfo
Created March 7, 2024 11:09
Show Gist options
  • Save SuhailTechInfo/5691ba46fffcb311da7ea77f2db2cdc8 to your computer and use it in GitHub Desktop.
Save SuhailTechInfo/5691ba46fffcb311da7ea77f2db2cdc8 to your computer and use it in GitHub Desktop.
SUHAIL-MD autoForward plug-in
//FORK AND USE IT
// MESSAGES COLLECT FROM THESE CHATS/GROUPS(FROM)
var from = ["xxxxxx-xxxxxxx@g.us"] //ex ["jid1" , "jid2" , "jid3"]
//MESSAGES SEND TO THESE CHATS/GROUPS(TO)
var to = "xxxxxxxx@s.whatsapp.net , xxxxxx-xxxxxxx@g.us " //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
@Rominnka
Copy link

View deleted messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment