Variables

finalattachments:ReadOnlyArray<ChatAttachment>

Array of attachments to this message

finaldirection:MessageDirection

Direction of this message

finalencryption:Null<EncryptionInfo>

Information about the encryption used by the sender of this message.

finallang:Null<String>

Language code for the body

finallinkMetadata:ReadOnlyArray<LinkMetadata>

Metadata about links associated with this message

finallocalId:Null<String>

The ID as set by the creator of this message

@HaxeCBridge.noemitread onlyreactions:Map<String, Array<Reaction>>

Map of reactions to this message

read onlyreplyToMessage:Null<ChatMessage>

Message this one is in reply to, or NULL

finalsenderId:String

The ID of the sender of this message

finalserverId:Null<String>

The ID as set by the authoritative server

finalserverIdBy:Null<String>

The ID of the server which set the serverId

finalstatus:MessageStatus

Status of this message

finalstatusText:Null<String>

Message to go along with the message status

finalthreadId:Null<String>

ID of the thread this message is in, or NULL

finaltimestamp:String

The timestamp of this message, in format YYYY-MM-DDThh:mm:ss[.sss]Z

finaltype:MessageType

The type of this message (Chat, Call, etc)

@:allow(borogove)finalversions:ReadOnlyArray<ChatMessage>

Array of past versions of this message, if it has been edited

Methods

account():String

The ID of the account associated with this message

@:value({ sender : null })body(?sender:Participant):Html

HTML representation of the message body

WARNING: this is possibly untrusted HTML. You must parse or sanitize appropriately!

Parameters:

sender

optionally specify the full details of the sender

callDuration():Null<String>

The duration of the call if this message is related to a call

callSid():Null<String>

The session id of the call if this message is related to a call

callStatus():Null<String>

The last status of the call if this message is related to a call

canReplace(other:ChatMessage):Bool

Is this message the same as or a replacement for some other one?

chatId():String

The ID of the Chat this message is associated with

isIncoming():Bool

Is this an incoming message?

moderationReason():Null<String>

If message is moderated, the reason

reply():ChatMessageBuilder

Create a new ChatMessage in reply to this one

subject():Null<String>

Subject if present

threadIcon():Null<Null<String>>

The URI of an icon for the thread associated with this message, or NULL