chatMessageAttachment resource type

Namespace: microsoft.graph

Represents an attachment to a chat message entity.

An entity of type chatMessageAttachment is returned as part of the Get channel messages API, as a part of chatMessage entity.

Properties

Property Type Description
id string Read-only. Unique id of the attachment.
contentType string The media type of the content attachment. It can have the following values:
  • reference: Attachment is a link to another file. Populate the contentURL with the link to the object.
  • Any contentTypes supported by the Bot Framework's Attachment object
  • application/vnd.microsoft.card.codesnippet: A code snippet.
  • application/vnd.microsoft.card.announcement: An announcement header.
contentUrl string URL for the content of the attachment. Supported protocols: http, https, file and data.
content string The content of the attachment. If the attachment is a rich card, set the property to the rich card object. This property and contentUrl are mutually exclusive.
name string Name of the attachment.
thumbnailUrl string URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user clicks the image, the channel would open the document.

JSON representation

The following is a JSON representation of the resource

{
  "id": "string (identifier)",
  "contentType": "string",
  "contentUrl": "string",
  "content": "string",
  "name": "string",
  "thumbnailUrl": "string"
}