wa-leal-stickers
v1.0.8
Published
Conversion of videos/images to WhatsApp Stickers (WebP)
Downloads
16
Maintainers
Readme
WA-Leal-Stickers
Wa-Leal-Stickers is a simple tool which allows you to create WhatsApp Stickers.
Installation
> npm i wa-leal-stickers
Import
Before using the library, you need to import it.
import { toSticker, StickerTypes } from 'wa-leal-stickers' // ES6
Usage
const stickerBuffer = await toSticker(buffer, {
pack: 'Pack_name', // The pack name
author: 'Your_name', // The author name
type: StickerTypes.DEFAULT, // The sticker type (only work for images)
fps: 10 // The fps of the output file
})
// Example sending sticker on Baileys
conn.sendMessage(jid, {sticker : stickerBuffer})
Sticker Types (Only for images)
const StickerTypes = {
DEFAULT = 'default',
CIRCLE = 'circle',
}