Skip to main content

Check If ID Exists on WhatsApp

Verify if a phone number or JID is registered on WhatsApp:
This is useful for validating phone numbers before attempting to send messages.

Query Chat History

Fetch older messages from a chat (works for both individual and group chats):
Messages will be received in the messaging.history-set event. The maximum number of messages per query is 50.

Fetch Status

Get a user’s WhatsApp status/about text:

Fetch Profile Picture

Get the display picture of a person or group in different resolutions:

Low Resolution Picture

High Resolution Picture

The function accepts 'preview' for low resolution (default) or 'image' for high resolution profile pictures.

Function Signature

From src/Socket/chats.ts:639-660:

Fetch Business Profile

Get detailed information about a business account:

Business Profile Structure

The returned object contains:

Example Response

Fetch Presence Status

Monitor if someone is typing or online:
See the Presence Updates page for detailed information about presence handling.

Implementation References

  • onWhatsApp - Uses USync protocol for number validation
  • fetchStatus - src/Socket/chats.ts:246-257
  • profilePictureUrl - src/Socket/chats.ts:639-660
  • getBusinessProfile - src/Socket/chats.ts:393-441
  • fetchMessageHistory - Implemented in messages socket
  • presenceSubscribe - src/Socket/chats.ts:730-742