Lingo.Type.Attachment (Lingo v0.4.2)

Copy Markdown View Source

A file attached to a message.

Summary

Functions

Whether the attachment is marked as a spoiler.

Types

t()

@type t() :: %Lingo.Type.Attachment{
  application: Lingo.Type.Application.t() | nil,
  clip_created_at: DateTime.t() | nil,
  clip_participants: [Lingo.Type.User.t()],
  content_type: String.t() | nil,
  description: String.t() | nil,
  duration_secs: float() | nil,
  ephemeral: boolean(),
  filename: String.t(),
  flags: integer(),
  height: integer() | nil,
  id: String.t(),
  placeholder: String.t() | nil,
  placeholder_version: integer() | nil,
  proxy_url: String.t(),
  size: integer(),
  title: String.t() | nil,
  url: String.t(),
  waveform: String.t() | nil,
  width: integer() | nil
}

Functions

spoiler?(attachment)

@spec spoiler?(t()) :: boolean()

Whether the attachment is marked as a spoiler.