Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

telefile

Uploading media files to telegra.ph

Install

npm i telefile

Usage

Always returns promise with link to media file like https://telegra.ph/file/hash.jpg

Common

NOTE: Just specify the file name

constlink=awaittelefile('cat.jpg')console.log(link)

Custom

Specify other type of source via object

file name

telefile({source: 'kitten.jpg'})

url

telefile({url: 'https://placekitten.com/300/200'})

stream

telefile({stream: fs.createReadStream('kitten.jpg')})

About

Uploading media files to telegra.ph

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages