Skip to main content

Interface: BaseChat

api/model/chat.BaseChat

Hierarchy

Properties

ack

Optional ack: any


archive

archive: boolean


canSend

Optional canSend: boolean

Whether your host account is able to send messages to this chat


changeNumberNewJid

changeNumberNewJid: any


changeNumberOldJid

changeNumberOldJid: any


contact

contact: Contact

The contact related to this chat


formattedTitle

Optional formattedTitle: string

The title of the chat


groupMetadata

groupMetadata: GroupMetadata

Group metadata for this chat


isAnnounceGrpRestrict

isAnnounceGrpRestrict: any

If the chat is a group chat is restricted


isOnline

Optional isOnline: any

Deprecated

This is unreliable. Use the method isChatOnline instead.


isReadOnly

isReadOnly: boolean

Whether the chat is a group chat and the group is restricted


kind

kind: string


labels

labels: any

The labels attached to this chat.


lastReceivedKey

lastReceivedKey: any

The ID of the last message received in this chat


lastSeen

Optional lastSeen: any

Deprecated

This is unreliable. Use the method getLastSeen instead.


modifyTag

modifyTag: number


msgs

msgs: any

The messages in the chat


muteExpiration

muteExpiration: number

The expiration timestamp of the chat mute


name

name: string

The name of the chat


notSpam

notSpam: boolean

Whether the chat is marked as spam


pendingMsgs

pendingMsgs: boolean

Messages that are pending to be sent


pin

pin: number

Whether the chat is pinned


presence

presence: any

The presence state of the chat participant


t

t: number

The timestamp of the last interaction in the chat


unreadCount

unreadCount: number

The number of undread messages in this chat