Properties
any
Binary data (for uploading or if already fetched)
() => Promise<any>
Fetch the attachment data.
For platforms that require authentication (like Slack private URLs),
this method handles the auth automatically.
Record<string, string>
Platform-specific metadata needed to reconstruct fetchData after serialization.
Adapters store IDs here (e.g. WhatsApp mediaId, Telegram fileId) so that
fetchData can be rebuilt when a message is rehydrated from the queue.
number
Image/video height (if applicable)
string
MIME type
string
Filename
number
File size in bytes
"image" | "file" | "video" | "audio"
required
Type of attachment
string
URL to the file (for linking/downloading)
number
Image/video width (if applicable)