Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server returned error 400 while sending message to channel #477

Open
Ased2235 opened this issue Oct 18, 2023 · 0 comments
Open

Server returned error 400 while sending message to channel #477

Ased2235 opened this issue Oct 18, 2023 · 0 comments

Comments

@Ased2235
Copy link

Anyone know how to send message to newsletter (channel) ? Here's how i'm sending

jid, _ := parseJID("xxxxxxx@newsletter")

	msg1 :=
		waProto.Message{

			Conversation: proto.String("data.Text"),
		}

	t, err := cli.SendMessage(nil, jid, &msg1)

	if err != nil {
		Log.Errorf("Error sending message: %v", err)
		return
	}

	Log.Debugf("%v", t)

But i'm getting error [Main ERROR] Error sending message: server returned error 400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant