Attachment entity
This module defines a Hunter.Attachment struct.
Fields
id- ID of the attachmenttype- One of: "image", "video", "gifv", "audio", "unknown"url- URL of the locally hosted version of the imageremote_url- For remote images, the remote URL of the original imagepreview_url- URL of the preview imagetext_url- Shorter URL for the image, for insertion into text (only present on local images)meta- May contain subtresssmallandoriginal. Images may contain:width,height,size,aspect, while videos (includinggifv) may contain:width,height,frame_rate,duration, andbitrate.preview_remote_url- for remote images, the remote URL of the preview imagedescription- attachment descriptionblurhash- hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet
Note: When the type is "unknown", it is likely only remote_url is
available and local url is missing