Skip to content

Cannot send message to newsletter channel - Cannot read properties of undefined (reading 'description') #124

@jarallahassalami

Description

@jarallahassalami

Description

When attempting to send a message to a WhatsApp newsletter channel via the /channel/sendMessage/{channelId} endpoint, the API returns a TypeError indicating that it cannot read the description property of an undefined object. This issue specifically occurs when targeting newsletter channels (identifiable by the @newsletter suffix in the chatId), while regular WhatsApp chats function as expected.

Expected Behavior

The API should successfully deliver messages to newsletter channels and return a success response with appropriate status.

Actual Behavior

The API returns an error response with status code 500 or 400, containing the following error message:

{
  "success": false,
  "error": "Cannot read properties of undefined (reading 'description')"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions