Skip to content

Instantly share code, notes, and snippets.

@mask-sir
Last active March 18, 2025 09:29
Show Gist options
  • Select an option

  • Save mask-sir/9f302750ad3cda876f9f0e8454b090d0 to your computer and use it in GitHub Desktop.

Select an option

Save mask-sir/9f302750ad3cda876f9f0e8454b090d0 to your computer and use it in GitHub Desktop.
Usefull for status group admins
//FORK AND USE
// VIDEOS COLLECT FROM THIS GROUP(FROM)
var from = ["[email protected]"]//eg ["jid1","jid2","jid3"]
//VIDEOS TAKES SEND TO THESE GROUPS(TO)
var to = "[email protected]"; //eg "jid1,jid2,jid3"
/*Function({ pattern: 'autoforward ?(.*)', fromMe:false}), async (mask,ser) ={return});*/
const {Function, parsedJid} = require('../lib/')
//You can change 👇👇 this video to audio/image/text
Function({on: 'video', fromMe: false}, async (me, text, client) => {
for ( any in from)
if (me.jid === from[any]) {
for (jid of parsedJid(to)){
await me.client.forwardMessage(jid, me.data, {contextInfo: {isForwarded: false}})
}}
})
//©HERMIT-MD
@zaheerkhan5433
Copy link

Send

@zaheerkhan5433
Copy link

Leave

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