ChatMessage
class ChatMessage
Instance Properties
- attachments Array of attachments to this message
- direction Direction of this message
- encryption Information about the encryption used by the sender of this message.
- lang Language code for the body text
- linkMetadata Metadata about links associated with this message
- localId The ID as set by the creator of this message
- o
- reactionKeys List of reactions to this message
- replyToMessage Message this one is in reply to, or NULL
- senderId The ID of the sender of this message
- serverId The ID as set by the authoritative server
- serverIdBy The ID of the server which set the serverId
- status Status of this message
- statusText Message to go along with the message status
- text Body text of this message or NULL
- threadId ID of the thread this message is in, or NULL
- timestamp The timestamp of this message, in format YYYY-MM-DDThh:mm:ss[.sss]Z
- type The type of this message (Chat, Call, etc)
- versions Array of past versions of this message, if it has been edited
Instance Methods
- account() The ID of the account associated with this message
- callDuration() The duration of the call if this message is related to a call
- callSid() The session id of the call if this message is related to a call
- callStatus() The last status of the call if this message is related to a call
- canReplace(other:) Is this message the same as or a replacement for some other one?
- chatId() The ID of the Chat this message is associated with
- html(sender:) The HTML version of the message body
- isIncoming() Is this an incoming message?
- reactionDetails(reactionKey:) Details of a set of reaction to this message
- reply() Create a new ChatMessage in reply to this one
- threadIcon() The URI of an icon for the thread associated with this message, or NULL