#sending contact card

4 messages · Page 1 of 1 (latest)

golden canopy
#

Please help im facing issue sending contact cards

pallid lichen
#
let vcard = 'BEGIN:VCARD\n' // metadata of the contact card
          + 'VERSION:3.0\n' 
          + 'FN:QUISHOT\n' // full name
          + 'ORG:Lylia BOT;\n' // the organization of the contact
          + 'TEL;type=CELL;type=VOICE;waid=55xxxx8412634:+55 xx xxx41-2634\n' // WhatsApp ID + phone number
          + 'END:VCARD'

msg.reply(vcard) 
or
client.sendMessage(number,vcard);
hollow bison
#

const contact = await client.getContactById('XXXXXXXXX@c.us');
await client.sendMessage(from, contact)

#

try this