new PrivateContact()

Extends
Contact

Properties

id  unknown

ID that represents the contact

Inherited from
Contact#id

isBlocked  unknown

Indicates if you have blocked this contact

Inherited from
Contact#isBlocked

isBusiness  unknown

Indicates if the contact is a business contact

Inherited from
Contact#isBusiness

isEnterprise  unknown

Indicates if the contact is an enterprise contact

Inherited from
Contact#isEnterprise

isGroup  unknown

Indicates if the contact is a group contact

Inherited from
Contact#isGroup

isMe  unknown

Indicates if the contact is the current user's contact

Inherited from
Contact#isMe

isMyContact  unknown

Indicates if the number is saved in the current phone's contacts

Inherited from
Contact#isMyContact

isUser  unknown

Indicates if the contact is a user contact

Inherited from
Contact#isUser

isWAContact  unknown

Indicates if the number is registered on WhatsApp

Inherited from
Contact#isWAContact

name  unknown

The contact's name, as saved by the current user

Inherited from
Contact#name

number  unknown

Contact's phone number

Inherited from
Contact#number

pushname  unknown

The name that the contact has configured to be shown publically

Inherited from
Contact#pushname

shortName  unknown

A shortened version of name

Inherited from
Contact#shortName

Methods

async

block() → Promise containing boolean

Blocks this contact from WhatsApp

Inherited from
Contact#block
Returns
async

getAbout() → Promise containing nullable string

Gets the Contact's current "about" info. Returns null if you don't have permission to read their status.

Inherited from
Contact#getAbout
Returns
async

getChat() → Promise containing Chat

Returns the Chat that corresponds to this Contact. Will return null when getting chat for currently logged in user.

Inherited from
Contact#getChat
Returns
async

getProfilePicUrl() → Promise containing string

Returns the contact's profile picture URL, if privacy settings allow it

Inherited from
Contact#getProfilePicUrl
Returns
async

unblock() → Promise containing boolean

Unblocks this contact from WhatsApp

Inherited from
Contact#unblock
Returns