Closed CSFelix closed 10 months ago
i face this issue too, is there a way to fix it?
i face this issue too, is there a way to fix it?
I'm afraid but I did not get to work around this yet π
i face this issue too, is there a way to fix it?
I'm afraid but I did not get to work around this yet π
i fix it with this npm package wa-sticker-formatter
because whatsapp need its metadata so that package will attach the metadata to the buffer
i face this issue too, is there a way to fix it?
I'm afraid but I did not get to work around this yet π
i fix it with this npm package
wa-sticker-formatter
because whatsapp need its metadata so that package will attach the metadata to the buffer
I did not work for me π. The stickers look ok on WhatsApp Web, but the problem remains on WhatsApp App for Mobiles.
Did you just installed the package or made modifications in the code?
i face this issue too, is there a way to fix it?
I'm afraid but I did not get to work around this yet π
i fix it with this npm package
wa-sticker-formatter
because whatsapp need its metadata so that package will attach the metadata to the bufferI did not work for me π. The stickers look ok on WhatsApp Web, but the problem remains on WhatsApp App for Mobiles.
Did you just installed the package or made modifications in the code?
you should convert the buffer with that package, did you?
if you want to look how do i implement it just go to my repo.
i face this issue too, is there a way to fix it?
I'm afraid but I did not get to work around this yet π
i fix it with this npm package
wa-sticker-formatter
because whatsapp need its metadata so that package will attach the metadata to the bufferI did not work for me π. The stickers look ok on WhatsApp Web, but the problem remains on WhatsApp App for Mobiles. Did you just installed the package or made modifications in the code?
you should convert the buffer with that package, did you?
if you want to look how do i implement it just go to my repo.
It worked, thank you very much!!!!!!!!!!
For the readers, this is the version of my code that works
import Sticker, { StickerTypes } from "wa-sticker-formatter";
const stickerFile = fs.readFileSync(media.path); // media is an Express.Multer.File
const stickerBuffer = Buffer.from(stickerFile);
const sticker = new Sticker(stickerBuffer, {
quality: 50,
type: StickerTypes.CROPPED,
author: "",
pack: ""
});
const stickerMedia = await sticker.toBuffer();
options = {
sticker: stickerMedia,
fileName: media.originalname,
isAnimated: false
};
const sentMessage = await wbot.sendMessage(
<JID>,
{ ...options }
);
Describe the bug
When sending stickers, they are sent normally to WhatsApp Web (image 1), but they do not render on WhatsApp Mobile App (image 2)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The stickers should have been normally rendered on both platforms: Web and Mobile App.
Environment (please complete the following information):
connectOptions
look like?