Methods
(async, static) formatImageToWebpSticker(media) → {Promise.<MessageMedia>}
Formats a image to webp
Parameters:
| Name | Type | Description |
|---|---|---|
media |
MessageMedia |
- Source:
Returns:
media in webp format
- Type
- Promise.<MessageMedia>
(async, static) formatToWebpSticker(media, metadata) → {Promise.<MessageMedia>}
Formats a media to webp
Parameters:
| Name | Type | Description |
|---|---|---|
media |
MessageMedia | |
metadata |
StickerMetadata |
- Source:
Returns:
media in webp format
- Type
- Promise.<MessageMedia>
(async, static) formatVideoToWebpSticker(media) → {Promise.<MessageMedia>}
Formats a video to webp
Parameters:
| Name | Type | Description |
|---|---|---|
media |
MessageMedia |
- Source:
Returns:
media in webp format
- Type
- Promise.<MessageMedia>
(static) setFfmpegPath(path)
Configure ffmpeg path
Parameters:
| Name | Type | Description |
|---|---|---|
path |
string |
- Source: