Skip to content

Instantly share code, notes, and snippets.

@S-U-P-E-R-I-O-R
Last active September 6, 2023 13:51
Show Gist options
  • Select an option

  • Save S-U-P-E-R-I-O-R/d662a3a7157c8f19ba7456f8ddc08c88 to your computer and use it in GitHub Desktop.

Select an option

Save S-U-P-E-R-I-O-R/d662a3a7157c8f19ba7456f8ddc08c88 to your computer and use it in GitHub Desktop.
const { inrl, getBuffer } = require('../lib/')
const image = 'https://i.imgur.com/XjiMUp1.jpeg' //MAIN IMAGE URL HERE
const number = "919497705819";
const ownerName = "π™°π™½π™°π™½π™³π™·πš„"
inrl(
{
pattern: 'owner ?(.*)',
fromMe: false,
desc: 'send owner vcard',
type: 'misc',
}, async (message) => {
const thumb = await getBuffer(image)
const vcard = 'BEGIN:VCARD\n' // metadata of the contact card
+ 'VERSION:3.0\n' + 'FN:'+ownerName+'\n' // full name
+ 'ORG:'+ownerName+';\n' // the organization of the contact
+ 'TEL;type=CELL;type=VOICE;waid='+number+':'+number+'\n' // WhatsApp ID + phone number
+ 'END:VCARD'
opt = {}
opt.linkPreview = {
renderLargerThumbnail: false,
showAdAttribution: true,
title: "ΙͺΝ₯α΄›Ν­sα·€ ᴍͫᴇ̀ ⏀͟͞κͺΆ π™³π™°πšπ™Ίπ™»π™΄π™΄ κ«‚β›§Ν’",
body: "α΄„ΚŸΙͺα΄„α΄‹ Κœα΄‡Κ€α΄‡ ᴛᴏ α΄³α΅‰α΅—πŸ«‚ !",
mediaType: 1,
thumbnail: thumb,
sourceUrl: "http://wa.me/919497705819?text=𝙷𝙻𝙾+π™°π™½π™°π™½π™³π™·πš„+π™±πšπ™ΎπŸͺ„_"
}
let content = { contacts :{
displayName: ownerName,
contacts: [{
vcard
}],
}
}
return await message.forwardMessage(message.from,content, opt)
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment