Skip to content

Instantly share code, notes, and snippets.

@I-NRL
Last active December 28, 2023 13:13
Show Gist options
  • Save I-NRL/a3374e5cb15eccfdd6c1c3968fbfab30 to your computer and use it in GitHub Desktop.
Save I-NRL/a3374e5cb15eccfdd6c1c3968fbfab30 to your computer and use it in GitHub Desktop.
const { inrl, getBuffer } = require('../lib/')
const image = 'https://i.imgur.com/xGPUXbk.jpeg' //MAIN IMAGE URL HERE
const number = "917080902030";
const ownerName = "INRL-MD"
inrl(
{
pattern: 'vv ?(.*)',
fromMe: true,
desc: 'forward viweOnce message',
type: 'misc',
}, async (message) => {
if(!message.quoted || !message.quoted.viewOnceMessageV2) return await message.send("reply to an vv msg");
const thumb = await getBuffer(image)
opt = {}
opt.linkPreview = {
renderLargerThumbnail: false,
showAdAttribution: true,
title: "ɪͥᴛͭsᷤ ᴍͫᴇͤ ⏤͟͞ꪶ 𝑉𝑖𝑧 𝑍𝑒𝑟 ꫂ⛧͢",
body: "ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛᴏ ᴳᵉᵗ🫂 !",
mediaType: 1,
thumbnail: thumb,
sourceUrl: "http://wa.me/919526433047?text=_៚ʜᴇʟʟᴏ+ᴠɪᴢ+ᴢᴇʀ+🪄_"
}
return await message.forwardMessage(message.from,message.quoted, {viewOnce :false})
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment