Skip to content

Instantly share code, notes, and snippets.

@missnora07
Last active August 19, 2022 16:59
Show Gist options
  • Save missnora07/54485a666a3cf9518dc60ee3280bfb5f to your computer and use it in GitHub Desktop.
Save missnora07/54485a666a3cf9518dc60ee3280bfb5f to your computer and use it in GitHub Desktop.
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