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
- Extend the WhatsApp target validation in the
message tool to accept @newsletter JIDs
- Route
sendMessage() calls with @newsletter targets through Baileys' existing socket
- 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
Feature Request
Problem
The
messagetool 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:Background
WhatsApp Channels (launched 2023) are one-way broadcast channels similar to Telegram Channels. They use the
@newsletterJID suffix in Baileys. The underlying Baileys library already supports newsletter operations:newsletterMetadata()newsletterFollow()/newsletterUnfollow()newsletterReactMessage()sendMessage()to@newsletterJIDs (for channel admins/owners)Proposed Solution
messagetool to accept@newsletterJIDssendMessage()calls with@newslettertargets through Baileys' existing socketnewsletterMetadata,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