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

Sending vCard Broken Wa-Web v2.2307.7

Open gkp1 opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

client.sendMessage(message.from, vCard); is no longer working with the 'classic' format:

vCard:

BEGIN:VCARD
VERSION:3.0
FN:Contact Name
ORG:Subtitle inside contact card;
TEL;type=CELL;type=VOICE;waid=554088885555:+55 40 8888-5555
END:VCARD

result: WhatsApp_SOFMOk249T

Chromium, whatsapp business.

Expected behavior

WhatsApp_xhe3nHWWNh

Steps to Reproduce the Bug or Issue



let vCard =`
BEGIN:VCARD
VERSION:3.0
FN:Contact Name
ORG:Subtitle inside contact card;
TEL;type=CELL;type=VOICE;waid=554088885555:+55 40 8888-5555
END:VCARD
`
client.sendMessage(message.from, vCard);

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows
Phone OS: Android 8
whatsapp-web.js version : v1.19.4
WhatsApp Web version : v2.2307.7
Node.js Version 19.0.0

Additional context

No response

gkp1 avatar Feb 14 '23 22:02 gkp1

Is there an existing issue for this?

  • [x] I have searched the existing issues

Describe the bug

client.sendMessage(message.from, vCard); is no longer working with the 'classic' format:

vCard:

BEGIN:VCARD
VERSION:3.0
FN:Contact Name
ORG:Subtitle inside contact card;
TEL;type=CELL;type=VOICE;waid=554088885555:+55 40 8888-5555
END:VCARD

result: WhatsApp_SOFMOk249T

Chromium, whatsapp business.

Expected behavior

WhatsApp_xhe3nHWWNh

Steps to Reproduce the Bug or Issue



let vCard =`
BEGIN:VCARD
VERSION:3.0
FN:Contact Name
ORG:Subtitle inside contact card;
TEL;type=CELL;type=VOICE;waid=554088885555:+55 40 8888-5555
END:VCARD
`
client.sendMessage(message.from, vCard);

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows
Phone OS: Android 8
whatsapp-web.js version : v1.19.4
WhatsApp Web version : v2.2307.7
Node.js Version 19.0.0

Additional context

No response

Try this #1995

RC047 avatar Feb 15 '23 11:02 RC047