Share via


ChatMessage Class

Chat message.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

ChatMessage(**kwargs: Any)

Variables

Name Description
id
str

The id of the chat message. This id is server generated.

type

Type of the chat message. Possible values include: "text", "html", "topicUpdated", "participantAdded", "participantRemoved".

sequence_id
str

Sequence of the chat message in the conversation.

version
str

Version of the chat message.

content

Content of the chat message.

sender_display_name
str or None

The display name of the chat message sender. This property is used to populate sender name for push notifications.

created_on

The timestamp when the chat message arrived at the server.

sender

The chat message sender.

deleted_on

The timestamp when the chat message was deleted.

edited_on

The last timestamp (if applicable) when the message was edited.

metadata
dict[str, str] or None

Message metadata.