The Attachment object is used to attach files to messages, such as photos, videos, or PDF files.
Name | Type | Description |
---|---|---|
id | UUID | The unique identifier of this attachment. |
ephemeral_url | EphemeralUrl(url: string, expires_at: DateTime) | The ephemeral URL pointing to the file. |
mime_type | string | The MIME type of the attachment. |
thumbnail_url | undefined? | The thumbnail URL of the attachment. |
Example
{
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"ephemeral_url": {
"url": "https://example.com",
"expires_at": "2022-06-24T14:36:22"
},
"mime_type": "image/png",
"thumbnail_url": {
"url": "https://example.com",
"expires_at": "2022-06-24T14:36:22"
}
}