Skip to content
New issue

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

[Feature Request][NOWEB] - Add sendContactVcard #256

Closed
mycodemm opened this issue Jan 14, 2024 · 2 comments
Closed

[Feature Request][NOWEB] - Add sendContactVcard #256

mycodemm opened this issue Jan 14, 2024 · 2 comments

Comments

@mycodemm
Copy link

mycodemm commented Jan 14, 2024

GET /api/sendContactVcard Can we send this through NOWEB? As Whatsapp Web Support To Send Contact.
WhatsApp Image 2024-01-14 at 8 29 08 PM

patron:ADVANCED

@allburov
Copy link
Contributor

Yep, it's possible, just didn't get such request. Will add it (no ETA yet)

@allburov allburov changed the title GET /api/sendContactVcard Can we send this through NOWEB? As Whatsapp Web Support To Send Contact[Feature Request] [Feature Request][NOWEB] - Add sendContactVcard Jan 15, 2024
@devlikepro
Copy link
Contributor

devlikepro commented Mar 24, 2024

Hi! Support for POST /api/sendContactVcard in NOWEB engine has been added in WAHA Plus 2024.3.10!
Please make sure to update your version to use that feature

If anyone is interested in sending contact vcard in WEBJS engine (default one) - please create a new issue so we can work on that too 🙏


Send contact (vcard)

Use POST /api/sendContactVcard to send contact (vcard).

You can use fields this way:

{
  "session": "default",
  "chatId": "79111111@c.us",
  "contacts": [
    {
      "fullName": "John Doe",
      "organization": "Company Name",
      "phoneNumber": "+91 11111 11111",
      "whatsappId": "911111111111"
    }
  ]
}

Or provide a vCard file content:

{
  "session": "default",
  "chatId": "79111111@c.us",
  "contacts": [
    {
      "vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:Jane Doe\nORG:Company Name;\nTEL;type=CELL;type=VOICE;waid=911111111111:+91 11111 11111\nEND:VCARD"
    }
  ]
}

Or even combine it:

  {
  "chatId": "79111111@c.us",
  "contacts": [
    {
      "vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:Jane Doe\nORG:Company Name;\nTEL;type=CELL;type=VOICE;waid=911111111111:+91 11111 11111\nEND:VCARD"
    },
    {
      "fullName": "John Doe",
      "organization": "Company Name",
      "phoneNumber": "+91 11111 11111",
      "whatsappId": "911111111111"
    }
  ],
  "session": "default"
}

patron:PRO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants