-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloading file to memory stream (feature request) #442
Comments
yeah, thats true, we'll need streaming , how about implementing fs methods into it? |
You can use getFileLink to get the link and create an stream with [your favourite HTTP request module]. |
@yagop I think we can work on adding a |
Just added TelegramBot#getFileStream() on master branch. Please try it out and give us feedback. |
Shipped in v0.30.0. |
Currently the only available option for downloading a file from Telegram servers is
downloadFile
which writes file to the disk. If the file is not needed for long then (i.e. you need file for one second) a write and read from disk plus a delete should be done.If there be a
getFileStream
method which returns a memory stream, then such a problem does not happen.Thanks
The text was updated successfully, but these errors were encountered: