ExWapp.Media.Upload (ExWapp v0.1.2)

Copy Markdown View Source

Metadata returned after uploading encrypted media to WhatsApp.

The upload struct contains everything needed to embed a media reference into an outbound protobuf message.

Summary

Types

t()

@type t() :: %ExWapp.Media.Upload{
  direct_path: binary() | nil,
  file_enc_sha256: binary(),
  file_length: non_neg_integer(),
  file_sha256: binary(),
  handle: binary() | nil,
  media_key: binary(),
  media_key_timestamp: non_neg_integer() | nil,
  object_id: binary() | nil,
  type: ExWapp.Media.media_type(),
  url: binary() | nil
}