cobrabot-patch

1.0.2 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i cobrabot-patch

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

2.71 kB

Total Files

3

Last publish

Collaborators

  • sisulaw