pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.42k stars 3.68k forks source link

How i sending vcards as contact? #614

Closed navetacandra closed 3 years ago

navetacandra commented 3 years ago

I copied received vcards message then i try to send, and the message is sent as usual ( not a VCards message )

let text = `
BEGIN:VCARD
VERSION:3.0
N:;+62 853-1117-4928;;;
FN:+62 853-1117-4928
TEL;type=CELL;waid=6285311174928:+62 853-1117-4928
END:VCARD`;

m.reply(text, m.from, {parseVCards: true})
maulanarcr7 commented 2 years ago

how to implement this?

Yuri-Lima commented 2 years ago
let text = `
BEGIN:VCARD
VERSION:3.0
N:;+62 853-1117-4928;;;
FN:+62 853-1117-4928
TEL;type=CELL;waid=6285311174928:+62 853-1117-4928
END:VCARD`;

Did you figure out how todo that?

navetacandra commented 2 years ago
let text = `
BEGIN:VCARD
VERSION:3.0
N:;+62 853-1117-4928;;;
FN:+62 853-1117-4928
TEL;type=CELL;waid=6285311174928:+62 853-1117-4928
END:VCARD`;

Did you figure out how todo that?

badly i forgot to push my bot project to github, and ya i forgot it

FabiolaBaani commented 1 year ago
let text = `
BEGIN:VCARD
VERSION:3.0
N:;+62 853-1117-4928;;;
FN:+62 853-1117-4928
TEL;type=CELL;waid=6285311174928:+62 853-1117-4928
END:VCARD`;

Did you figure out how todo that?

badly i forgot to push my bot project to github, and ya i forgot it

That's working for you yet?

gabazureus commented 1 year ago

Not working for me