Uploading media files to telegra.ph
npm i telefile
Always returns promise with link to media file like https://telegra.ph/file/hash.jpg
NOTE: Just specify the file name
const link = await telefile('cat.jpg')
console.log(link)
Specify other type of source via object
telefile({ source: 'kitten.jpg' })
telefile({ url: 'https://placekitten.com/300/200' })
telefile({ stream: fs.createReadStream('kitten.jpg') })