@Fox and how to upload an undetermined number of photos (chosen by user) from a folder of 1000 images, one by one, on a single session?
Example, the first execution the user upload 4 images, the second time 9 images etc.
It's tricky.
What solved it for me was:
Screenshot in Base64 of the web;
Write it to disk
Post https://api.telegram.org/botXXXXXXXXXXX:SECRET/sendPhoto
Post using the postdata constructor as example: -- "chat_id",{{chatId}},"photo","file://" + {{Image folder location}} + "screenshot.png"
use multipart content type