(img, url, packname, author, categories = [''], extra = {})
| 108 | } |
| 109 | |
| 110 | async function sticker5(img, url, packname, author, categories = [''], extra = {}) { |
| 111 | const { Sticker } = await import('wa-sticker-formatter') |
| 112 | const stickerMetadata = { |
| 113 | type: 'default', |
| 114 | pack: packname, |
| 115 | author, |
| 116 | categories, |
| 117 | ...extra, |
| 118 | } |
| 119 | return new Sticker(img ? img : url, stickerMetadata).toBuffer() |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Convert using fluent-ffmpeg |
nothing calls this directly
no outgoing calls
no test coverage detected