windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
256 stars 116 forks source link

Support for [media] file upload #316

Closed outlying closed 1 year ago

outlying commented 1 year ago

According to documentation Telegram API supports file upload with multipart/form-data but I cannot find a way to do it with available Telegram nodes.

https://core.telegram.org/bots/api#inputmediaphoto

windkh commented 1 year ago

Did you check the examples folder?

windkh commented 1 year ago

@outlying I guess you can use sendMediaGroup

https://github.com/windkh/node-red-contrib-telegrambot/blob/master/examples/sendmediagroup.json

windkh commented 1 year ago

@outlying any news?

outlying commented 1 year ago

@windkh Yes, sorry, I provided a local path to the image/video in the message and it worked out, the file was uploaded

At first, I looked at the documentation and there was no indication that it could be done this way, although a public URL was suggested in a few cases but my assumption was it will end up with media being linked and maybe that's the behavior