Skip to content

[Feature] MESSAGES_UPDATE webhook não inclui errors da Meta (Business API) #2486

@guilhermeeplugin

Description

@guilhermeeplugin

Welcome!

  • Yes, I have searched for similar requests on GitHub and found none.

What type of feature?

Functionality

What is the motivation for the request?

Problema

No whatsapp.business.service.ts, quando a Meta retorna status failed com detalhes do erro, o webhook MESSAGES_UPDATE descarta o array errors.

Código atual (~linha 980):

const message: any = {
  messageId: findMessage.id,
  keyId: key.id,
  remoteJid: key.remoteJid,
  fromMe: key.fromMe,
  participant: key?.remoteJid,
  status: item.status.toUpperCase(),
  instanceId: this.instanceId,
};
this.sendDataWebhook(Events.MESSAGES_UPDATE, message);

### Usage Examples

## Solução

status: item.status.toUpperCase(),
errors: item.errors || null,   // ← adicionar
instanceId: this.instanceId,

### How should the feature be developed?

_No response_

### Additional Notes

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions