* Image/Video to Sticker * @param {Buffer} img Image/Video Buffer * @param {String} url Image/Video URL * @param {String} packname EXIF Packname * @param {String} author EXIF Author
(img, url, packname, author)
| 71 | * @param {String} author EXIF Author |
| 72 | */ |
| 73 | async function sticker3(img, url, packname, author) { |
| 74 | url = url ? url : await uploadFile(img) |
| 75 | let res = await fetch( |
| 76 | 'https://api.xteam.xyz/sticker/wm?' + |
| 77 | new URLSearchParams( |
| 78 | Object.entries({ |
| 79 | url, |
| 80 | packname, |
| 81 | author, |
| 82 | }) |
| 83 | ) |
| 84 | ) |
| 85 | return await res.buffer() |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Image to Sticker |
nothing calls this directly
no outgoing calls
no test coverage detected