Presence helpers aligned with Baileys' presence and chatstate behavior.
Summary
Types
Presence states supported by Baileys.
Parsed presence payload emitted through the event emitter.
Functions
Parse an incoming presence or chatstate node and optionally emit presence_update.
Send a Baileys-compatible presence or chatstate update.
Subscribe to presence updates for a JID, appending a TC token when one exists.
Types
Functions
@spec handle_update( BaileysEx.BinaryNode.t(), keyword() ) :: {:ok, presence_update()} | :ignore | {:error, :invalid_presence_node}
Parse an incoming presence or chatstate node and optionally emit presence_update.
Send a Baileys-compatible presence or chatstate update.
Subscribe to presence updates for a JID, appending a TC token when one exists.