ExWapp.Signal.PrekeyFetcher (ExWapp v0.1.2)

Copy Markdown View Source

Fetches prekey bundles from WhatsApp server for establishing Signal sessions.

Summary

Functions

Fetches prekey bundle for a recipient JID.

Fetches prekey bundles for multiple recipients at once.

Functions

fetch_prekeys(session, jid)

@spec fetch_prekeys(pid(), String.t()) :: {:ok, map()} | {:error, term()}

Fetches prekey bundle for a recipient JID.

Sends an IQ query and waits for the response.

fetch_prekeys_batch(session, jids)

@spec fetch_prekeys_batch(pid(), [String.t()]) ::
  {:ok, %{required(String.t()) => map()}} | {:error, term()}

Fetches prekey bundles for multiple recipients at once.