wa-leal-stickers

1.0.8 • Public • Published
wsf

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',
}

Package Sidebar

Install

npm i wa-leal-stickers

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

7.74 kB

Total Files

6

Last publish

Collaborators

  • victorsouzaleal