You should go with some node library for images, like >
js-imagediff
pixelmatch
node-opencv
Good starting point to explore more deeply about it >
https://stackoverflow.com/questions/4196453/simple-and-fast-method-to-compare-images-for-similarity
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