Add option to omit phone/waid from sendContact vCard

Open
#2,748 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start at the /message/sendContact/{instance} endpoint and its sendContact payload handling, then trace the generated vCard and the automatic wuid/TEL resolution. Add a payload option that omits the phone/waid line while preserving the name-only contact, and verify the endpoint response with a direct test matching the behavior described in the issue.

Written by the indexing model from the issue text.

Description

Related to #24, which made wuid auto-derive from phoneNumber when sending a contact via /message/sendContact. Since then, item1.TEL;waid={wuid}:{phoneNumber} is always included in the generated vCard — there's no way to share a "name only" contact without exposing/confirming a WhatsApp number tied to it.

Suggestion: add an option in the sendContact payload (e.g. includePhone: false) to skip the waid= TEL line, or support a vCard with just fullName and no phone/wuid resolution.

Confirmed this is enforced server-side with a direct test against /message/sendContact/{instance}, bypassing our own integration code entirely — the vCard returned still had waid= auto-populated from the phone number sent in the payload.

Also posted as a suggestion on the community Discord (tag: Modify).

Dominant language
TypeScript
Stars
10.2k
Forks
7.5k
Avg merge
6d 19h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from evolution-foundation/evolution-api

All issues in evolution-foundation/evolution-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.