cobrabot-patch
v1.0.2
Published
welcome cobra npm package
Downloads
8
Readme
How To Use
Bug Fixed
const fs = require('fs');
const {uploadByBuffer} = require('cobrabot-patch')
var geturl = await uploadByBuffer(fs.readFileSync(file or path), 'video/mp4' or another mimetype) //select one option of mimetype...
console.log(geturl.link) // result - https://telegra.ph/file/xxx.png or https://telegra.ph/file/xxxx.mp4
// && whatsapp bot baileys
await message.client.sendMessage(message.jid, geturl.link, MessageType.text)