ChatMessage interface

A chat message.

Extends

Properties

attached
clientMessageId
content
contentType
deletedOn
editedOn
messageType
metadata

A metadata field for the message. <xref:%40azure%2Fcommunication-chat%23ChatMessage.metadata>

mine
senderDisplayName
senderId
status

Inherited Properties

createdOn
messageId

Property Details

attached

attached?: MessageAttachedStatus

Property Value

clientMessageId

clientMessageId?: string

Property Value

string

content

content?: string

Property Value

string

contentType

contentType: MessageContentType

Property Value

deletedOn

deletedOn?: Date

Property Value

Date

editedOn

editedOn?: Date

Property Value

Date

messageType

messageType: "chat"

Property Value

"chat"

metadata

A metadata field for the message. <xref:%40azure%2Fcommunication-chat%23ChatMessage.metadata>

metadata?: Record<string, string>

Property Value

Record<string, string>

mine

mine?: boolean

Property Value

boolean

senderDisplayName

senderDisplayName?: string

Property Value

string

senderId

senderId?: string

Property Value

string

status

status?: MessageStatus

Property Value

Inherited Property Details

createdOn

createdOn: Date

Property Value

Date

Inherited From MessageCommon.createdOn

messageId

messageId: string

Property Value

string

Inherited From MessageCommon.messageId