Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Event → Get Many

AI-generated

Summary

Retrieve multiple persisted events from the Baileys instance, optionally filtered by entity type, event type, message ID, and limited to a maximum number of results.

Inputs

  • Entity Type — Filter events by a specific entity type.
  • Event Type — Filter events by a specific event type.
  • Limit — Maximum number of events to return. Defaults to 50, with a range of 1 to 100.
  • Message ID — Filter events related to a specific message ID.

Output shape

a list of event records matching the specified filters

The operation returns an array of event objects in the JSON output under the 'items' key if present. The maximum number of results returned is controlled by the 'Limit' input parameter, capped at 100.

Links

Discussion