Skip to content

Add option to omit phone/waid from sendContact vCard #2748

Description

@abinadabesantos

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions