你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatMessageEditedEvent interface

已编辑聊天消息的事件。 所有聊天参与者都会收到此事件,包括原始发件人

Extends

属性

editedOn

编辑消息时的时间戳。 时间戳采用RFC3339格式: yyyy-MM-ddTHH:mm:ssZ

继承属性

attachments

聊天消息附件。

createdOn

消息到达服务器的时间戳。 时间戳采用RFC3339格式: yyyy-MM-ddTHH:mm:ssZ

id

消息的 ID。 此 ID 是服务器生成的。

message

消息的内容。

metadata

消息的元数据。

recipient

事件收件人的 ID。

sender

事件发送方的 ID。

senderDisplayName

事件发送方的显示名称。

threadId

事件的线程 ID。

type

聊天消息的类型。 可能的类型为“Text”和“RichText/Html”。

version

消息的版本。 此版本是数字无符号 Int64 格式的纪元时间: 1593117207131

属性详细信息

editedOn

编辑消息时的时间戳。 时间戳采用RFC3339格式: yyyy-MM-ddTHH:mm:ssZ

editedOn: Date

属性值

Date

继承属性详细信息

attachments

聊天消息附件。

attachments?: ChatAttachment[]

属性值

@azure/communication-signaling.ChatAttachment[]

继承自ChatMessageReceivedEvent.attachments

createdOn

消息到达服务器的时间戳。 时间戳采用RFC3339格式: yyyy-MM-ddTHH:mm:ssZ

createdOn: Date

属性值

Date

继承自ChatMessageReceivedEvent.createdOn

id

消息的 ID。 此 ID 是服务器生成的。

id: string

属性值

string

继承自ChatMessageReceivedEvent.id

message

消息的内容。

message: string

属性值

string

继承自ChatMessageReceivedEvent.message

metadata

消息的元数据。

metadata: Record<string, string>

属性值

Record<string, string>

继承自ChatMessageReceivedEvent.metadata

recipient

事件收件人的 ID。

recipient: CommunicationIdentifierKind

属性值

@azure/communication-signaling.CommunicationIdentifierKind

继承自ChatMessageReceivedEvent.recipient

sender

事件发送方的 ID。

sender: CommunicationIdentifierKind

属性值

@azure/communication-signaling.CommunicationIdentifierKind

继承自ChatMessageReceivedEvent.sender

senderDisplayName

事件发送方的显示名称。

senderDisplayName: string

属性值

string

继承自ChatMessageReceivedEvent.senderDisplayName

threadId

事件的线程 ID。

threadId: string

属性值

string

继承自ChatMessageReceivedEvent.threadId

type

聊天消息的类型。 可能的类型为“Text”和“RichText/Html”。

type: string

属性值

string

继承自ChatMessageReceivedEvent.type

version

消息的版本。 此版本是数字无符号 Int64 格式的纪元时间: 1593117207131

version: string

属性值

string

继承自ChatMessageReceivedEvent.version