Skip to content

Instantly share code, notes, and snippets.

@Corex24
Forked from Kiranxer/owner(inrl).js
Last active February 18, 2025 02:00
Show Gist options
  • Select an option

  • Save Corex24/a65350c8fe2eb88f2b3c22bc4a0a9ba9 to your computer and use it in GitHub Desktop.

Select an option

Save Corex24/a65350c8fe2eb88f2b3c22bc4a0a9ba9 to your computer and use it in GitHub Desktop.
const { inrl, getBuffer } = require('../lib/')
const image = 'https://pin.it/5uT5Fcgv0' //MAIN IMAGE URL HERE
const number = "2348036869669";
const ownerName = "♡Corex♡"
inrl(
{
pattern: 'owner ?(.*)',
fromMe: true,
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: false,
title: "ᴋ-7",
body: "キランサーの個人ボット 🩷",
mediaType: 1,
thumbnail: thumb,
sourceUrl: "http://wa.me/2349128089949"
}
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