ArchAstro. Types. Attachment
(archastro v0.2.0)
Copy Markdown
A rich attachment associated with a message, such as a file, scraped link, artifact, task, media item, or inline action.
Summary
Types
@type t() :: %ArchAstro.Types.Attachment{ content_type: String.t() | ArchAstro.Unset.t(), description: String.t() | ArchAstro.Unset.t(), filename: String.t() | ArchAstro.Unset.t(), height: integer() | ArchAstro.Unset.t(), id: String.t(), image_height: integer() | ArchAstro.Unset.t(), image_source: ArchAstro.Types.ImageSource.t() | ArchAstro.Unset.t(), image_url: String.t() | ArchAstro.Unset.t(), image_width: integer() | ArchAstro.Unset.t(), media_type: String.t() | ArchAstro.Unset.t(), name: String.t() | ArchAstro.Unset.t(), object: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(), title: String.t() | ArchAstro.Unset.t(), type: String.t(), url: String.t() | ArchAstro.Unset.t(), variants: [ArchAstro.Types.MediaVariant.t()] | ArchAstro.Unset.t(), version: integer() | ArchAstro.Unset.t(), width: integer() | ArchAstro.Unset.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()