whatsapp-web.js
whatsapp-web.js copied to clipboard
Not able to send Contact
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
I am trying to send contact in contact card formate. But not able to send.
Expected behavior
Want to Get contact in contact card formate.
Steps to Reproduce the Bug or Issue
- when I am sending a contact it goes to text formate.
Relevant Code
client.sendMessage(contactNo+ '@c.us', 'BEGIN:VCARD\n' + 'VERSION:3.0\n' + 'N:Ln;abc;;;\n' + 'FN:abcLn\n' + 'TEL;type=Mobile;waid=917491945069:+91 74919 45069\n' + 'END:VCARD',{ parseVCards: false }
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Window Phone OS: [Android, iOS] whatsapp-web.js version [1.23.1-alpha.0] WhatsApp Web version [run await client.getWWebVersion()]: Node.js Version [v18.18.0]
Additional context
No response
You can check this pulls #1995
You can check this pulls #1995
Ok Thanks , Is there any other way to fix it except node_modules .
Anyone please help I'm facing this erorr
Anyone please help I'm facing this erorr
Your wid is invalid,
your probably passing a phone number directly but a WhatsApp ID is something like ${phoneNumber}@c.us
eg. [email protected]
You can check this pulls #1995
The proposed solution is no longer valid. The problem persists.
The proposed solution does not work on 1.25.0