Skip to main content

Own presence

Broadcast whether the account is online with client.presence.send:
The presence announced right after connecting is controlled by the markOnlineOnConnect option.

Typing indicators (chat-state)

sendChatstate sends a per-chat hint such as typing or recording:
A common pattern is to show typing briefly before replying:

Subscribing to a contact

To receive a contact’s presence and chat-state, subscribe to them:
Subscriptions are per-JID and live only for the current connection. After a reconnect you must re-subscribe to keep receiving updates.

Status broadcasts

Post a status (the “stories” feature) with client.status (WaStatusCoordinator). The content is the same content union as a normal message; you provide the recipient list:
Media works too:

Status privacy & mute

Last modified on May 28, 2026