interface Message {
    ack: number;
    author: string;
    body: string;
    broadcast: boolean;
    chat: Chat;
    chatId: string;
    clientUrl: string;
    content: string;
    deprecatedMms3Url: string;
    directPath: string;
    filehash: string;
    from: string;
    height: number;
    id: string;
    interactiveAnnotations: any[];
    invis: boolean;
    isForwarded: boolean;
    isGroupMsg: boolean;
    isMMS: boolean;
    isMedia: boolean;
    isNewMsg: boolean;
    isNotification: boolean;
    isPSA: boolean;
    labels: any[];
    lastSeen: number | boolean;
    mediaData: MediaData;
    mediaKey: string;
    mediaKeyTimestamp: number;
    mentionedJidList: any[];
    mimetype: string;
    notifyName: string;
    quotedMsgId: null;
    quotedMsgObj: null;
    recipients?: string[];
    recvFresh: boolean;
    self: string;
    sender: Contact;
    size: number;
    star: boolean;
    subtype: string;
    t: number;
    timestamp: number;
    to: string;
    type: MessageType;
    uploadhash: string;
    width: number;
}

Properties

ack: number
author: string
body: string
broadcast: boolean
chat: Chat

Deprecated

Use o getChat para obter detalhes do chat

chatId: string
clientUrl: string
content: string
deprecatedMms3Url: string
directPath: string
filehash: string
from: string
height: number
id: string
interactiveAnnotations: any[]
invis: boolean
isForwarded: boolean
isGroupMsg: boolean
isMMS: boolean
isMedia: boolean
isNewMsg: boolean
isNotification: boolean
isPSA: boolean
labels: any[]
lastSeen: number | boolean
mediaData: MediaData
mediaKey: string
mediaKeyTimestamp: number
mentionedJidList: any[]
mimetype: string
notifyName: string
quotedMsgId: null
quotedMsgObj: null

Deprecated

Use o atributo quotedMsgId em getMessageById para obter detalhes da mensagem

recipients?: string[]
recvFresh: boolean
self: string
sender: Contact
size: number
star: boolean
subtype: string

When type is GP2: GroupNotificationType

t: number
timestamp: number
to: string
uploadhash: string
width: number