# `ExWapp.Signal.PrekeyFetcher`
[🔗](https://github.com/elchemista/ex_wapp/blob/v0.1.5/lib/ex_wapp/signal/prekey_fetcher.ex#L1)

Fetches prekey bundles from WhatsApp server for establishing Signal sessions.

# `fetch_prekeys`

```elixir
@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`

```elixir
@spec fetch_prekeys_batch(pid(), [String.t()]) ::
  {:ok, %{required(String.t()) =&gt; map()}} | {:error, term()}
```

Fetches prekey bundles for multiple recipients at once.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
