yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.35k stars 1.52k forks source link

Problems send Contact using vcard format #1041

Open dafner opened 1 year ago

dafner commented 1 year ago

hi,

I'm trying to send a contact using the vcard format with the function sendContact like the following example:

bot.sendContact(to,
"+1234567890", "Han", { vcard: "BEGIN:VCARD\n" + "VERSION:3.0\n" + "N:Solo;Han\n" + "ORG:Scruffy-looking nerf herder\n" + "TEL;TYPE=voice,work,pref:+1234567890\n" + "EMAIL:hansolo@mfalcon.com\n" + "END:VCARD" })

but the message I get is not a contact that I can import into my contact list.

This is the image of the message I receive:

screen

and it should be this way:

shot-contact_vcard

Any idea witch is the problem?

Thanks in advance!!