Skip to content

Interface: ChatMessage ​

A message as plain data; YapYap never hands out DOM nodes or HTML.

Properties ​

outgoing ​

readonly outgoing: boolean

Whether the account's user sent it.


sentAt? ​

readonly optional sentAt?: number

When it was sent, in milliseconds since the epoch, when WhatsApp shows it.


text ​

readonly text: string

The text, as WhatsApp shows it.

Released under the MIT License. Development supported by Ensita. YapYap is unofficial and not affiliated with WhatsApp or Meta.