const { Function, getBuffer } = require('../lib/') const { generateWAMessage, proto } = require('@adiwajshing/baileys'); const image = 'https://i.imgur.com/AXtC7iH.jpeg' //MAIN IMAGE URL HERE const logo = 'https://i.imgur.com/53kpmax.jpeg'
Function(
{
pattern: 'intro ?(.)',
fromMe: true,
desc: 'Shows My Intro',
type: 'misc',
}, async (message, match) => {
const jid = message.jid
const number = message.client.user.jid
const thumb = await getBuffer(image)
const thumbnail = await getBuffer(logo)
const options = {}
options.contextInfo = {
forwardingScore: 999, // change it to 999 for many times forwarded
isForwarded: false,
}
// ADDED / TO REMOVE LINK PREVIEW TYPE
options.linkPreview = {
renderLargerThumbnail: true,
showAdAttribution: true,
title: "𝞛𝞓𝙎𝞙 𝙎𝞝𝗥",
body: "ᴄʟɪᴄᴋ ʜᴇʀᴇ 🦋 !!",
mediaType: 1,
thumbnail: thumb,
sourceUrl: "http://wa.me/918136962641?text=_៚ʜᴇʟʟᴏ+ᴍᴀsᴋ+sᴇʀ+ʙɪɢ+ғᴀɴ+ᴠʀᴏ+🪄_"
}
// ADDED */ TO REMOVE LINK PREVIEW TYPE
options.quoted = {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "status@broadcast"
},
message: {
'contactMessage': {
'displayName': ${message.pushName}
, //ADD ${message.client.user.name}
TO DISPLAY CLIENT USER NAME.
'vcard': BEGIN:VCARD\nVERSION:3.0\nN:XL;${message.client.user.name},;;;\nFN:${message.client.user.name},\nitem1.TEL;waid=${number.split('@')[0]}:${number.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD
,
'jpegThumbnail': thumbnail
}
}
}
let messages = await generateWAMessage(message.jid, { text: 0ཻུ۪۪ꦽꦼ̷⸙‹•══════════════♡᭄ │ *「 𝗠𝗬 𝗜𝗡𝗧𝗥𝗢 」* │ *Name :* itachi │ *Place :* japan │ *Gender :* ᴍᴀʟᴇ │ *Age :* error │ *Phone :* wa.m+2349030079824 │ *IG ID : undefined │ *Status :* single ╰═════ꪶ ཻུ۪۪ꦽꦼ̷⸙ ━ ━ ━ ━ ꪶ ཻུ۪۪ꦽꦼ̷⸙
}, {quoted: message.quoted || ''})
await message.client.forwardMessage(message.jid, await proto.WebMessageInfo.fromObject(messages), options)
}
);