Skip to content

WhatsApp Newsletter/Channel support in message tool #13417

@agentz-manfred

Description

@agentz-manfred

Feature Request

Problem

The message tool currently only accepts E.164 phone numbers and group JIDs as targets for WhatsApp. WhatsApp Channels (Newsletters) use a different JID format (xxxxx@newsletter) which is rejected by the target validation with:

Error: Delivering to WhatsApp requires target <E.164|group JID> or channels.whatsapp.allowFrom[0]

Background

WhatsApp Channels (launched 2023) are one-way broadcast channels similar to Telegram Channels. They use the @newsletter JID suffix in Baileys. The underlying Baileys library already supports newsletter operations:

  • newsletterMetadata()
  • newsletterFollow() / newsletterUnfollow()
  • newsletterReactMessage()
  • sendMessage() to @newsletter JIDs (for channel admins/owners)

Proposed Solution

  1. Extend the WhatsApp target validation in the message tool to accept @newsletter JIDs
  2. Route sendMessage() calls with @newsletter targets through Baileys' existing socket
  3. Optionally: add newsletter-specific actions (e.g. newsletterMetadata, newsletterReactMessage)

Use Case

We run a satirical news site (schwerinistgeil.de) and want to automatically post top articles to our WhatsApp Channel. Currently we have to manually copy-paste content since the message tool rejects the newsletter JID.

Environment

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