docs/Contact.html
idisBlockedisBusinessisEnterpriseisGroup
isMeisMyContactisUserisWAContactname
block()getAbout()getBroadcast()
getChat()getCommonGroups()getCountryCode()
getFormattedNumber()getProfilePicUrl()unblock()
ExtendsBase
ID that represents the contact
Indicates if you have blocked this contact
Indicates if the contact is a business contact
Indicates if the contact is an enterprise contact
Indicates if the contact is a group contact
Indicates if the contact is the current user's contact
Indicates if the number is saved in the current phone's contacts
Indicates if the contact is a user contact
Indicates if the number is registered on WhatsApp
The contact's name, as saved by the current user
Contact's phone number
The name that the contact has configured to be shown publically
A shortened version of name
async
Blocks this contact from WhatsApp
Returns
Promise containing boolean
async
Gets the Contact's current "about" info. Returns null if you don't have permission to read their status.
Returns
Promise containing nullable string
async
Gets the Contact's current status broadcast.
Returns
Promise containing Broadcast
async
Returns the Chat that corresponds to this Contact. Will return null when getting chat for currently logged in user.
Returns
Promise containing Chat
async
Gets the Contact's common groups with you. Returns empty array if you don't have any common group.
Returns
Promise containing Array of WAWebJS.ChatId
async
Returns the contact's countrycode, ([email protected]) => (1)
Returns
Promise containing string
async
Returns the contact's formatted phone number, ([email protected]) => (+1 (234) 5678-901)
Returns
Promise containing string
async
Returns the contact's profile picture URL, if privacy settings allow it
Returns
Promise containing string
async
Unblocks this contact from WhatsApp
Returns
Promise containing boolean