Partial attachment object used in requests to describe uploaded or kept attachments.
| Property | Type | Description |
|---|---|---|
| description | String | Description (alt text) for the file (max 1024 characters) |
| duration_secs | Number | The duration of the audio file (required for voice messages) |
| filename | String | Name of file attached |
| id | String | Attachment id; for new uploads this matches the n in files[n], for kept attachments the existing id |
| is_spoiler | Boolean | Whether the attachment should be marked as a spoiler |
| title | String | The title of the file |
| waveform | String | Base64 encoded sampled waveform (required for voice messages) |