open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.14k stars 600 forks source link

sendRawWebpAsSticker blank sticker #887

Closed dandyraka closed 4 years ago

dandyraka commented 4 years ago

Describe the bug I tried sending webp as image & file, then waited for bot response. Show blank sticker on bot. For receiver, bot didn't send anything.

DEBUG INFO This is the info printed to the console when you start your app. It should look like this

Debug Info {
  WA_VERSION: 2.2039.9,
  PAGE_UA: 'WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36,
  WA_AUTOMATE_VERSION: 2.0.27,
  BROWSER_VERSION: HeadlessChrome/85.0.4183.121
}

Screenshots If applicable, add screenshots to help explain your problem. Use headless: false to get screenshots image

Host (please complete the following information):

Additional context Add any other context about the problem here.

smashah commented 4 years ago

Please share the dataurl of the webp you're trying to send

dandyraka commented 4 years ago

Please share the dataurl of the webp you're trying to send

https://pastebin.com/raw/k6CwPfus

smashah commented 4 years ago

@dandyraka also this method isn't really ready for use. Why not just use the normal sticker method?

dandyraka commented 4 years ago

I try to make animated gif to sticker. So i convert gif to webp, and try run sendRawWebpAsSticker. I think it will work.

Can you can make a feature gif (default on whatsapp app) to animated sticker? or send video as animated sticker maybe.

smashah commented 4 years ago

Done already

https://github.com/open-wa/wa-automate-nodejs/issues/868

dandyraka commented 4 years ago

image

I mean like this, my expect the output will be animated sticker

smashah commented 4 years ago

@dandyraka when WhatsApp shows you a gif it is actually an mp4 file. This is because gifs are not memory efficient.

Just use a normal gif file please.