Documentation Index
Fetch the complete documentation index at: https://mintlify.com/whiskeysockets/Baileys/llms.txt
Use this file to discover all available pages before exploring further.
Check If ID Exists on WhatsApp
Verify if a phone number or JID is registered on WhatsApp: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
Fromsrc/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 validationfetchStatus-src/Socket/chats.ts:246-257profilePictureUrl-src/Socket/chats.ts:639-660getBusinessProfile-src/Socket/chats.ts:393-441fetchMessageHistory- Implemented in messages socketpresenceSubscribe-src/Socket/chats.ts:730-742