#!/bin/sh SnapFile="/var/tmp/image.jpg". wget -O $SnapFile "http://192.168.1.245:8765/picture/1/current/?" # curl -s -X POST "https://api.telegram.org/bot1015xxxxxxxx9:AAFgMaPRTxxxxxxxxxxxpc0QNYY/sendMessage?chat_id=10xxxxxxxx80&text=Door" curl -s -X POST "https://api.telegram.org/bot1015xxxxxxxx9:AAFgMaPRTyACWJGNNk8G3vxxxxxxxxxxQNYY/sendPhoto?chat_id=10xxxxxxxxxx0" -F photo="@$SnapFile" /bin/rm $SnapFile SnapFile="/var/tmp/image1.jpg". wget -O $SnapFile "http://192.168.1.245:8765/picture/2/current/?" # curl -s -X POST "https://api.telegram.org/bot101xxxxxxx9:AAFgMaPRTyACWxxxxxxxxxxxxxx/sendMessage?chat_id=107xxxxxxxx&text=Backyard" curl -s -X POST "https://api.telegram.org/bot101xxxxxxxx9:AAFgMaPRTyACWJGxxxxxxxxxxxxxxxxx/sendPhoto?chat_id=107xxxxxxxxx" -F photo="@$SnapFile" /bin/rm $SnapFile