Privacy-setting queries aligned with Baileys chats.ts.
Summary
Functions
Fetch the full account blocklist.
Fetch disappearing durations for one or more JIDs via USync.
Fetch privacy settings from the server, or return cached settings when a store
is supplied and force is false.
Block or unblock a user.
Who can add you to calls.
Set the account default disappearing-message duration in seconds.
Disable or enable server-side link-preview generation via the Baileys app-state patch path.
Who can add you to groups.
Who can see your last seen.
Elixir-friendly alias for update_disable_link_previews_privacy/2.
Who can message you.
Online status visibility.
Profile-picture visibility.
Read-receipt visibility.
Status/story visibility.
Functions
Fetch the full account blocklist.
@spec fetch_disappearing_duration(term(), [String.t()], keyword()) :: {:ok, [map()]} | {:error, term()}
Fetch disappearing durations for one or more JIDs via USync.
Fetch privacy settings from the server, or return cached settings when a store
is supplied and force is false.
@spec update_block_status(term(), String.t(), :block | :unblock, keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Block or unblock a user.
@spec update_call_add(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Who can add you to calls.
@spec update_default_disappearing_mode(term(), non_neg_integer(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Set the account default disappearing-message duration in seconds.
Disable or enable server-side link-preview generation via the Baileys app-state patch path.
@spec update_group_add(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Who can add you to groups.
@spec update_last_seen(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Who can see your last seen.
Elixir-friendly alias for update_disable_link_previews_privacy/2.
@spec update_messages(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Who can message you.
@spec update_online(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Online status visibility.
@spec update_profile_picture(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Profile-picture visibility.
@spec update_read_receipts(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Read-receipt visibility.
@spec update_status(term(), atom() | String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Status/story visibility.