-
-
Save mask-sir/9f302750ad3cda876f9f0e8454b090d0 to your computer and use it in GitHub Desktop.
Usefull for status group admins
This file contains hidden or 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 | |
| // 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Send