Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.07k stars 493 forks source link

sending image error after version update #628

Open batara666 opened 2 years ago

batara666 commented 2 years ago

message sending responded with 400

and the message is not send

batara666 commented 2 years ago

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 commented 2 years ago

This library is out if update.... Unfortunately.

Regard

On Tue, Nov 2, 2021, 12:35 PM batara666 @.***> wrote:

message sending responded with 400

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/628, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT25IN2SX7QEXN2KI7PTUJ65HJANCNFSM5HGDPIBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

batara666 commented 2 years ago

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

batara666 commented 2 years ago

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

batara666 commented 2 years ago

how to debug whatsapp web (non MD)

beshoo commented 2 years ago

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

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

batara666 commented 2 years ago

what version you use

beshoo commented 2 years ago

the latest one!

On Tue, Nov 2, 2021 at 4:14 PM batara666 @.***> wrote:

what version you use

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/628#issuecomment-957669058, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDLT274HRSSJPNWBGRSR7DUJ7W5LANCNFSM5HGDPIBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.