Baileys API icon

Baileys API

Interact with Baileys API Manager

Chat → Ler Mensagens

AI-generated

Summary

Read a specific message from a chat using the Baileys API.

Inputs

  • instanceName (required) — Name of the Baileys API instance
  • remoteJid (required) — Contact number (remote JID) of the chat recipient
  • messageId (required) — ID of the message to read
  • fromMe (required) — Whether the message was sent by the instance (true) or received (false)

Output shape

JSON array

Result returned via returnJsonArray after the registered handler executes.

Examples

Example 1: Read a message sent by the instance

instanceName set to the target instance, remoteJid to the contact, messageId to the target message ID, fromMe set to true.

Discussion