Peer data operation transport for phone-only protocol messages.
Summary
Functions
Requests an on-demand history sync payload from an existing session.
Constructs a peer request to resolve missing e2e placeholders.
Transmits a constructed peer data operation request node.
Types
@type context() :: BaileysEx.Message.Sender.context()
@type message_key_like() :: map()
@type peer_request() :: struct()
Functions
@spec fetch_message_history( context(), pos_integer(), message_key_like(), integer(), keyword() ) :: {:ok, String.t(), context()} | {:error, term()}
Requests an on-demand history sync payload from an existing session.
@spec placeholder_resend_request(message_key_like()) :: peer_request()
Constructs a peer request to resolve missing e2e placeholders.
@spec send_request(context(), peer_request(), keyword()) :: {:ok, String.t(), context()} | {:error, term()}
Transmits a constructed peer data operation request node.