1.0.8 • Published 2 years ago

wa-leal-stickers v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago