MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / sticker3

Function sticker3

lib/sticker.js:73–86  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

71 * @param {String} author EXIF Author
72 */
73async 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected