Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

User → Fetch Message History

AI-generated

Summary

Requests a batch of WhatsApp message history using the count and oldest known message cursor details. The request returns an ID; the messages arrive separately through the messaging-history.set event.

Inputs

  • History Count — Number of messages to request; defaults to 25, with a UI range of 1–50.
  • Oldest Message Key — WAMessageKey for the oldest known message, such as one from a messages.upsert event; defaults to {}.
  • Oldest Message Timestamp — Unix timestamp of the oldest known message; defaults to 0.

Output shape

A single item containing a JSON object with requestId and note.

The returned item confirms the history request; it does not contain the requested messages. The note says results arrive via the messaging-history.set event.

Links

Discussion