Skip to main content
Baileys gives you programmatic access to the same privacy controls available in the WhatsApp app. You can block and unblock contacts, fetch your current privacy configuration, and update individual visibility settings for your account.

Block and unblock users

Fetch all privacy settings

Pass true to force a fresh fetch from WhatsApp.

Fetch your block list

Returns an array of JIDs you have blocked.

Update last seen privacy

Controls who can see the last time you were active on WhatsApp.

Update online privacy

Controls who can see when you are currently online.

Update profile picture privacy

Controls who can view your profile photo.

Update status privacy

Controls who can see your WhatsApp Status (Stories) updates.

Update read receipts privacy

Controls whether your read receipts (blue ticks) are sent.
When you disable read receipts, you also stop receiving them from others.

Update groups add privacy

Controls who can add you to groups without your approval.

Update default disappearing message mode

Sets the default timer applied to new chats you start. Pass 0 to disable disappearing messages by default.
This default applies to new chats only. It does not retroactively change existing conversations.