A file attached to a message.
| Property | Type | Description |
|---|---|---|
| content_type | String | The attachment's media type |
| description | String | Description (alt text) for the file (max 1024 characters) |
| duration_secs | Number | The duration of the audio file (voice messages) |
| ephemeral | Boolean | Whether this attachment is ephemeral |
| filename | String | Name of file attached |
| flags | Integer | Attachment flags combined as a bitfield |
| height | Integer | Height of file (if image or video) |
| id | String | Attachment id |
| proxy_url | String | A proxied url of file |
| size | Integer | Size of file in bytes |
| title | String | The title of the file |
| url | String | Source url of file |
| waveform | String | Base64 encoded bytearray representing a sampled waveform (voice messages) |
| width | Integer | Width of file (if image or video) |