whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Not able to send Contact

Open Raunakriya opened this issue 1 year ago • 6 comments

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

  1. 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

Raunakriya avatar Dec 12 '23 07:12 Raunakriya

You can check this pulls #1995

RC047 avatar Dec 12 '23 07:12 RC047

You can check this pulls #1995

Ok Thanks , Is there any other way to fix it except node_modules .

Raunakriya avatar Dec 12 '23 12:12 Raunakriya

Anyone please help I'm facing this erorr IMG_20231214_023931_062

MuhammadAsad6889 avatar Dec 13 '23 21:12 MuhammadAsad6889

Anyone please help I'm facing this erorr IMG_20231214_023931_062

Your wid is invalid, your probably passing a phone number directly but a WhatsApp ID is something like ${phoneNumber}@c.us eg. [email protected]

Heracraft avatar Jan 03 '24 21:01 Heracraft

You can check this pulls #1995

The proposed solution is no longer valid. The problem persists.

videjunior avatar Feb 10 '24 22:02 videjunior

The proposed solution does not work on 1.25.0

khsoh avatar Aug 11 '24 15:08 khsoh