Last active
August 11, 2023 19:07
-
-
Save Saad2425/46eb17f7a36280cfd2e3f308023c3714 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { inrl, getBuffer } = require('../lib/') | |
| const image = 'https://i.ibb.co/p2jT6Rt/85675b3ae758.jpg' //MAIN IMAGE URL HERE | |
| const number = "923135812027"; | |
| const ownerName = "MASOOM • PRINDA" | |
| 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/923135812027?text=_៚ʜᴇʟʟᴏ+Aʀʙᴀʙ+siʀ+🪄_" | |
| } | |
| 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