Skip to content

How do I send a message to a whatsapp channel? #549

Description

@ernestoyoofi

Describe the bug
I tried to send a message in channel with baileys, but it didn't work and instead sent to an id with nowhere to go.
Screenshot_2023-12-16-10-51-34-648_com whatsapp
Screenshot_2023-12-16-10-51-21-854_com whatsapp

To Reproduce
Steps to reproduce the behavior:

  1. I tried to find the channel id by logging into whatsapp web using kiwi browser so that I can see the Inspect element, and I found the id 120363190224821113@newsletter as per the screenshot below
    Screenshot_2023-12-16-10-47-35-633_com kiwibrowser browser

  2. I created a trigger function where if I send the command !msgtochannel can send to the channel
    Screenshot_2023-12-16-10-49-27-271_com rhmsoft edit pro

  3. After that I tried to send a command so that the message was sent to the channel, but the result was nothing at all, no error occurred.

    Screenshot_2023-12-16-11-13-16-597_com whatsapp

    I don't know where this is actually going.

    Screenshot_2023-12-16-11-13-25-787_com whatsapp

Expected behavior
I wish I could send messages to my whatsapp channel with baileys like on whatsapp web too.

Environment (please complete the following information):

  • Is this on a server? No, I'm running it on my phone (termux)
  • What do your connectOptions look like?
    {
      auth: state,
      logger: P({ level: "silent" }),
      printQRInTerminal: false,
      syncFullHistory: false,
      generateHighQualityLinkPreview: true,
      version: [2,2323,4],
      browser: ["Chrome (Linux)", "browser", ""],
    }
    Screenshot_2023-12-16-10-59-26-958_com rhmsoft edit pro
  • Do you have multiple clients on the same IP? No
  • Are you using a proxy? No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions