We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I send a message the contact from the wwebjs doesn't send as a contact, but just the vcard format as a normal text message.
Like this:
/* whatsapp-web.js * awesome-phonenumber */ let contact = await message.getContact() let vcard = ` BEGIN:VCARD VERSION:3.0 N:;${contact.pushname};;; FN:${contact.pushname} TEL;type=CELL;type=VOICE;waid=${contact.number}:${PhoneNumber('+' + contact.number).getNumber('international')}${contact.isBusiness ? ` X-WA-BIZ-NAME:${contact.pushname} X-WA-BIZ-DESCRIPTION:${await contact.getAbout()}` : ''} END:VCARD `.trim() return chat.sendMessage(vcard, { quotedMessageId: message.id._serialized, parseVCards: true })
Google Chrome
Standard
Yes, I am using Multi Device
node.js 18.12.1 whatsapp-web.js 1.19.4
No response
The text was updated successfully, but these errors were encountered:
Fine thanks
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Describe the bug
When I send a message the contact from the wwebjs doesn't send as a contact, but just the vcard format as a normal text message.
Like this:
![WhatsApp Image 2023-02-12 at 19 04 36](https://user-images.githubusercontent.com/75566525/218310014-284a631b-6017-4403-8067-85e2ebdf27aa.jpg)
Expected behavior
Steps to Reproduce the Bug or Issue
Relevant Code
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
node.js 18.12.1
whatsapp-web.js 1.19.4
Additional context
No response
The text was updated successfully, but these errors were encountered: