Interface IChatMessage
Represents an individual chat message within a channel or chat. The chat message can be a root chat message or part of a reply thread that is defined by the replyToId property in the chat message.
public interface IChatMessage : IDataModel<IChatMessage>, IDataModelParent, IDataModelWithContext, ISupportModules<IChatMessage>, IDataModelGet<IChatMessage>, IDataModelLoad<IChatMessage>, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
Attachments
Attached files
IChatMessageAttachmentCollection Attachments { get; }
Property Value
Body
Plaintext/HTML representation of the content of the chat message. Representation is specified by the contentType inside the body. The content is always in HTML if the chat message contains a chatMessageMention.
IChatMessageContent Body { get; }
Property Value
CreatedDateTime
Read only. Timestamp of when the chat message was created.
DateTimeOffset CreatedDateTime { get; }
Property Value
DeletedDateTime
Read only. Timestamp at which the chat message was deleted, or null if not deleted.
DateTimeOffset DeletedDateTime { get; }
Property Value
Etag
Read-only. Version number of the chat message.
string Etag { get; }
Property Value
From
Read only. Details of the sender of the chat message.
IChatIdentitySet From { get; }
Property Value
HostedContents
Hosted Content tiles
IChatMessageHostedContentCollection HostedContents { get; }
Property Value
Id
Read-only. Unique Id of the message.
string Id { get; }
Property Value
Importance
The importance of the chat message.
ChatMessageImportance Importance { get; set; }
Property Value
LastModifiedDateTime
Read only. Timestamp of when the chat message is created or edited, including when a reply is made (if it's a root chat message in a channel) or a reaction is added or removed.
DateTimeOffset LastModifiedDateTime { get; }
Property Value
Locale
Locale of the team chat message
string Locale { get; set; }
Property Value
Mentions
List of entities mentioned in the chat message. Currently supports user, bot, team, channel.
IChatMessageMentionCollection Mentions { get; }
Property Value
MessageType
The type of chat message. The possible values are: message.
ChatMessageType MessageType { get; set; }
Property Value
Reactions
Reactions for this chat message (for example, Like).
IChatMessageReactionCollection Reactions { get; }
Property Value
ReplyToId
Read-only. Id of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels not chats)
string ReplyToId { get; }
Property Value
Subject
The subject of the chat message, in plaintext.
string Subject { get; set; }
Property Value
Summary
Summary text of the chat message that could be used for push notifications and summary views or fall back views. Only applies to channel chat messages, not chat messages in a chat.
string Summary { get; set; }