Upravit

Sdílet prostřednictvím


chatMessageInfo resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents a preview of a chatMessage resource. This object can only be fetched as part of a list of chats.

Properties

Property Type Description
body itemBody Body of the chatMessage. This will still contain markers for @mentions and attachments even though the object doesn't return @mentions and attachments.
createdDateTime DateTimeOffset Date time object representing the time at which message was created.
eventDetail eventMessageDetail Read-only. If present, represents details of an event that happened in a chat, a channel, or a team, for example, members were added, and so on. For event messages, the messageType property is set to systemEventMessage.
from chatMessageFromIdentitySet Information about the sender of the message.
id String ID of the chatMessage.
isDeleted Boolean If set to true, the original message has been deleted.
messageType chatMessageType The type of chat message. The possible values are: message, unknownFutureValue, systemEventMessage.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.chatMessageInfo",
  "id": "String (identifier)",
  "body": {
    "@odata.type": "microsoft.graph.itemBody"
  },
  "from": {
    "@odata.type": "microsoft.graph.chatMessageFromIdentitySet"
  },
  "createdDateTime": "String (timestamp)",
  "isDeleted": "Boolean",
  "messageType": "String",
  "eventDetail": {
    "@odata.type": "microsoft.graph.eventMessageDetail"
  }
}