Last active
August 19, 2022 16:59
-
-
Save missnora07/54485a666a3cf9518dc60ee3280bfb5f to your computer and use it in GitHub Desktop.
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
const {Module} = require('../main') | |
const {skbuffer} = require('raganork-bot'); | |
const {MODE} = require('../config'); | |
let auto = MODE == 'public' ? false : true | |
Module({ | |
pattern: 'getimg ?(.*)', | |
fromMe: auto, | |
desc: 'Sends view once image', | |
use: 'utility', | |
}, async (m,t) => { | |
m.quoted.message = m.quoted.message.viewOnceMessage.message; | |
m.quoted.message[Object.keys(m.quoted.message)[0]].viewOnce = false | |
await m.forwardMessage(m.jid,m.quoted) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment