BaileysEx.Connection.Version (baileys_ex v0.1.0-alpha.8)

Copy Markdown View Source

Baileys-style helpers for discovering the latest published web versions.

Summary

Types

fetch_fun()

@type fetch_fun() :: (String.t(), keyword() ->
                  {:ok, fetch_response()} | {:error, term()})

fetch_response()

@type fetch_response() :: %{status: pos_integer(), body: binary()}

version_result()

@type version_result() :: %{
  :version => [non_neg_integer()],
  :is_latest => boolean(),
  optional(:error) => term()
}

Functions

fetch_latest_baileys_version(opts \\ [])

@spec fetch_latest_baileys_version(keyword()) :: version_result()

fetch_latest_wa_web_version(opts \\ [])

@spec fetch_latest_wa_web_version(keyword()) :: version_result()