Table of Contents

TTMSFNCWhatsAppReceiverMessage Class

Represents a fully parsed incoming message, exposing the sender, metadata, and the typed payload (text, media, location, or contacts) according to MessageType.

API unit family: TMSFNCWhatsAppReceiver Inherits from: TPersistent

Syntax

TTMSFNCWhatsAppReceiverMessage = class(TPersistent)

Properties

Name Description
Contacts Shared contacts carried by the message when its type is contacts.
From Sender details of the message.
ID Unique identifier of the message.
IsReply Indicates whether the message is a reply to a previous message.
Location Location payload carried by the message when its type is location.
Media Media payload carried by the message when its type is image, document, audio, video, or sticker.
MessageType Kind of payload carried by the message, determining which payload property is populated.
Text Text payload carried by the message when its type is text.
TimeStamp Time the message was sent, as the originally received timestamp string.

Methods

Name Description
ToJSON Serializes the message to its JSON representation based on the current message type.