Interface: Contact
api/model/contact.Contact
Properties
businessProfile
• Optional
businessProfile: BusinessProfile
If the contact is a business, the business information will be added to the contact object.
In some circumstances this will be out of date or lacking certain fields. In those cases you have to use client.getBusinessProfile
formattedName
• formattedName: string
id
• id: ContactId
isBusiness
• isBusiness: boolean
isEnterprise
• isEnterprise: boolean
Most likely true when the account has a green tick. See verifiedLevel
also.
isMe
• isMe: boolean
isMyContact
• isMyContact: boolean
isOnline
• Optional
isOnline: boolean
isPSA
• isPSA: boolean
isUser
• isUser: boolean
isWAContact
• isWAContact: boolean
labels
• labels: string
[]
lastSeen
• Optional
lastSeen: number
msgs
• msgs: Message
[]
name
• name: string
plaintextDisabled
• plaintextDisabled: boolean
profilePicThumbObj
• profilePicThumbObj: Object
Type declaration
Name | Type |
---|---|
eurl | string |
id | Id |
img | string |
imgFull | string |
raw | string |
tag | string |
pushname
• pushname: string
shortName
• shortName: string
statusMute
• statusMute: boolean
type
• type: string
verifiedLevel
• verifiedLevel: number
0 = not verified 2 = verified (most likely represents a blue tick)
verifiedName
• verifiedName: string
The business account name verified by WA.