Last active
November 17, 2024 19:50
-
-
Save A-S-W-I-N-S-P-A-R-K-Y/6850529589430f58685c6e9518d61591 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { command, getBuffer } = require('../lib/') | |
const image = 'https://i.imgur.com/xGPUXbk.jpeg' //MAIN IMAGE URL HERE | |
const number = "917080902030"; | |
const ownerName = "INRL-MD" | |
command( | |
{ | |
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/919526433047?text=_៚ʜᴇʟʟᴏ+ᴠɪᴢ+ᴢᴇʀ+🪄_" | |
} | |
let content = { contacts :{ | |
displayName: ownerName, | |
contacts: [{ | |
vcard | |
}], | |
} | |
} | |
return await message.sendMessage(message.from,content, opt) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment