Share via


MessageActionsPayloadAttachment Class

Represents the attachment in a message.

Constructor

pydantic model MessageActionsPayloadAttachment

Parameters

Name Description
id
Required

The id of the attachment.

content_type
Required

The type of the attachment.

content_url
Required

The url of the attachment, in case of an external link.

content
Required

The content of the attachment, in case of a code snippet, email, or file.

name
Required

The plaintext display name of the attachment.

thumbnail_url
Required

The url of a thumbnail image that might be embedded in the attachment, in case of a card.

Keyword-Only Parameters

Name Description
id
Required
contentType
Required
contentUrl
Required
content
Required
name
Required
thumbnailUrl
Required

Attributes

content

field content: Any | None [Required]

content_type

field content_type: str | None [Required] (alias 'contentType')

content_url

field content_url: str | None [Required] (alias 'contentUrl')

id

field id: str | None [Required]

name

field name: str | None [Required]

thumbnail_url

field thumbnail_url: str | None [Required] (alias 'thumbnailUrl')