Baileys-style helpers for discovering the latest published web versions.
Summary
Types
@type fetch_fun() :: (String.t(), keyword() -> {:ok, fetch_response()} | {:error, term()})
@type fetch_response() :: %{status: pos_integer(), body: binary()}
@type version_result() :: %{ :version => [non_neg_integer()], :is_latest => boolean(), optional(:error) => term() }
Functions
@spec fetch_latest_baileys_version(keyword()) :: version_result()
@spec fetch_latest_wa_web_version(keyword()) :: version_result()