Skip to main content

Variable: USER_SERVER

const USER_SERVER: "s.whatsapp.net" = 's.whatsapp.net'

Defined in: util/jid.ts:15

Utilities for working with WhatsApp JIDs.

A JID identifies a chat, contact or group. With the modern Multi-Device system there are two ways to identify a user:

  • PN (Phone Number): 34123456789@s.whatsapp.net The classic format.
  • LID (Local ID): 123456789@lid An anonymous identifier that WhatsApp assigns to each user to preserve their privacy (e.g. in large groups). As of Baileys 7 it is the default format for new sessions.
  • Group: 120363...@g.us
  • Broadcast/statuses: status@broadcast