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

sending image error after version update #628

Open
batara666 opened this issue Nov 2, 2021 · 8 comments
Open

sending image error after version update #628

batara666 opened this issue Nov 2, 2021 · 8 comments

Comments

@batara666
Copy link

batara666 commented Nov 2, 2021

message sending responded with 400

and the message is not send

@batara666
Copy link
Author

the code:

msg := whatsapp.ImageMessage{
	Info: whatsapp.MessageInfo{
		RemoteJid: myPhone + "@s.whatsapp.net",
	},
	Type:    "image/jpeg",
	Caption: text,
	Content: obj,
}

b, err := ioutil.ReadAll(obj)
if err == nil {
	msg.Thumbnail = b
}

_, err = wac.Send(msg)

@beshoo
Copy link
Collaborator

beshoo commented Nov 2, 2021 via email

@batara666
Copy link
Author

hi @beshoo, could you please help us solve this problem

@batara666
Copy link
Author

or, could you tell me how to fix this kind of problem, thanks @beshoo

@batara666
Copy link
Author

how to debug whatsapp web (non MD)

@beshoo
Copy link
Collaborator

beshoo commented Nov 2, 2021

it is working with my API!
check my API which is works with go-whatsapp

https://github.com/beshoo/go-whatsapp-rest-api

@batara666
Copy link
Author

what version you use

@beshoo
Copy link
Collaborator

beshoo commented Nov 2, 2021 via email

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

2 participants