Closed gmag11 closed 8 months ago
I saw your commit. Well, you can use the autodownload feature, the file id or as you prefered the complete weblink.
In my eyes all of those are valid use cases. So returning the weblink sounds like a useful idea.
merged and released: @gmag11 thanks for your contribution
When invoking the
getFile
method, the bot responds with the following data:To download the file, a complete web link is required, similar to how the message receiver gets a link when a file is sent to the bot.
I am working with callbacks that include messages with photos. I prefer not to use the
downloadFile
command as I wish to pass raw data directly to the subsequent node instead of saving to the file system.I am considering three potential solutions:
webLink
property to themsg
object in response togetFile
.getFileLink
command.webLink
in callback responses that refer to a message containing a file.Which one do you think it would be better?