entityId | string | Identifier for the entity related to the attachment. | ✔️ |
format | string | Format of the attachment (e.g., image/jpeg, video/mp4). | ✔️ |
name | string | Name of the attachment. | ✔️ |
ogTags | OgTag | Open Graph tags associated with the attachment. | ✔️ |
size | number | Size of the attachment in bytes. | ✔️ |
url | string | URL to access the attachment. | ✔️ |
duration | number | Duration of the attachment if it’s a video or audio file (in seconds). | ✔️ |
coverImageUrl | string | URL of the cover image for the attachment (if applicable). | ✔️ |
title | string | Title of the attachment (if it contains a document or media with title). | ✔️ |
body | string | Body or content description of the attachment. | ✔️ |
pollQuestion | string | Question text if the attachment is a poll. | ✔️ |
expiryTime | number | Expiry timestamp for the poll. | ✔️ |
options | string[] | List of options available for the poll. | ✔️ |
multipleSelectState | PollMultipleSelectState | Poll multiple select state (if it's a poll with multiple selections). | ✔️ |
pollType | PollType | Type of the poll. | ✔️ |
multipleSelectNumber | number | Number of allowed selections in a multiple-select poll. | ✔️ |
isAnonymous | boolean | Whether the poll is anonymous. | ✔️ |
allowAddOption | boolean | Whether users can add options to the poll. | ✔️ |
thumbnailUrl | string | URL of the thumbnail for the attachment (if available). | ✔️ |
meta | Record<string, any> or null | Any additional metadata related to the attachment. | ✔️ |
pageCount | number | Number of pages (if the attachment is a document). | ✔️ |