interface Chat {
    archive: boolean;
    archiveAtMentionViewedInDrawer: boolean;
    contact: Contact;
    ephemeralDuration: number;
    groupMetadata: GroupMetadata;
    hasChatBeenOpened: boolean;
    hasOpened: boolean;
    hasUnreadMention: boolean;
    id: Wid;
    isAnnounceGrpRestrict: boolean;
    isBroadcast: boolean;
    isGroup: boolean;
    isReadOnly: boolean;
    isUser: boolean;
    kind: string;
    lastReceivedKey: MessageId;
    msgs: null;
    muteExpiration: number;
    name: string;
    notSpam?: boolean;
    pendingMsgs: boolean;
    pin: number;
    presence: Presence;
    restricted: boolean;
    t: number;
    unreadCount: number;
    unreadMentionCount: number;
}

Properties

archive: boolean

whether the message was archived

archiveAtMentionViewedInDrawer: boolean
contact: Contact
ephemeralDuration: number
groupMetadata: GroupMetadata
hasChatBeenOpened: boolean

whether the chat is visually open in WhatsApp Web (see UILayer.openChat())

hasOpened: boolean

if you can send messages into the chat without having to be an admin (refers to group chats, see the isGroup attribute)

hasUnreadMention: boolean
id: Wid
isAnnounceGrpRestrict: boolean
isBroadcast: boolean
isGroup: boolean
isReadOnly: boolean
isUser: boolean
kind: string
lastReceivedKey: MessageId
msgs
muteExpiration: number
name: string
notSpam?: boolean

Whatsapp provides us with built-in spam detection and this is its indicator

pendingMsgs: boolean
pin: number
presence: Presence
restricted: boolean
t: number
unreadCount: number
unreadMentionCount: number