ExWapp.Media.Ref (ExWapp v0.1.2)

Copy Markdown View Source

Downloadable media reference extracted from an inbound message or upload.

This is the minimum information required to fetch encrypted media bytes and verify/decrypt them locally.

Summary

Types

t()

@type t() :: %ExWapp.Media.Ref{
  direct_path: binary() | nil,
  file_enc_sha256: binary() | nil,
  file_length: non_neg_integer() | nil,
  file_sha256: binary() | nil,
  media_key: binary() | nil,
  media_key_timestamp: non_neg_integer() | nil,
  metadata: map(),
  mimetype: binary() | nil,
  type: ExWapp.Media.media_type(),
  url: binary() | nil
}