Variables

finalattachments:ReadOnlyArray<ChatAttachment>

Array of attachments to this message

finaldirection:MessageDirection

Direction of this message

encryption:Null<EncryptionInfo>

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

finallang:Null<String>

Language code for the body text

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

status:MessageStatus

Status of this message

finaltext:Null<String>

Body text of this message or NULL

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

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

chatId():String

The ID of the Chat this message is associated with

@:value({ sender : null })html(?sender:Participant):String

Get HTML version 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

isIncoming():Bool

Is this an incoming message?

reply():ChatMessageBuilder

Create a new ChatMessage in reply to this one

threadIcon():Null<Null<String>>

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