Back to Whatsapp Web Js

whatsapp

docs/BusinessContact.html

1.34.74.6 KB
Original Source

Properties

businessProfileidisBlockedisBusinessisEnterprise

isGroupisMeisMyContactisUserisWAContact

namenumberpushnameshortName

Methods

block()getAbout()getBroadcast()

getChat()getCommonGroups()getCountryCode()

getFormattedNumber()getProfilePicUrl()unblock()

new BusinessContact()

ExtendsContact

Properties

businessProfile

The contact's business profile

id unknown

ID that represents the contact

Inherited fromContact#id

isBlocked unknown

Indicates if you have blocked this contact

Inherited fromContact#isBlocked

isBusiness unknown

Indicates if the contact is a business contact

Inherited fromContact#isBusiness

isEnterprise unknown

Indicates if the contact is an enterprise contact

Inherited fromContact#isEnterprise

isGroup unknown

Indicates if the contact is a group contact

Inherited fromContact#isGroup

isMe unknown

Indicates if the contact is the current user's contact

Inherited fromContact#isMe

isMyContact unknown

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

Inherited fromContact#isMyContact

isUser unknown

Indicates if the contact is a user contact

Inherited fromContact#isUser

isWAContact unknown

Indicates if the number is registered on WhatsApp

Inherited fromContact#isWAContact

name unknown

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

Inherited fromContact#name

number unknown

Contact's phone number

Inherited fromContact#number

pushname unknown

The name that the contact has configured to be shown publically

Inherited fromContact#pushname

shortName unknown

A shortened version of name

Inherited fromContact#shortName

Methods

async

block() → Promise containing boolean

Blocks this contact from WhatsApp

Inherited fromContact#blockReturns 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 fromContact#getAboutReturns async

getBroadcast() → Promise containing Broadcast

Gets the Contact's current status broadcast.

Inherited fromContact#getBroadcastReturns 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 fromContact#getChatReturns async

getCommonGroups() → Promise containing Array of WAWebJS.ChatId

Gets the Contact's common groups with you. Returns empty array if you don't have any common group.

Inherited fromContact#getCommonGroupsReturns async

getCountryCode() → Promise containing string

Returns the contact's countrycode, ([email protected]) => (1)

Inherited fromContact#getCountryCodeReturns async

getFormattedNumber() → Promise containing string

Returns the contact's formatted phone number, ([email protected]) => (+1 (234) 5678-901)

Inherited fromContact#getFormattedNumberReturns async

getProfilePicUrl() → Promise containing string

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

Inherited fromContact#getProfilePicUrlReturns async

unblock() → Promise containing boolean

Unblocks this contact from WhatsApp

Inherited fromContact#unblockReturns