09.03.2020, 10:31
Hello,
I have this function created to send image with Telegram's BOT.
local telegram_url_sendphototo = 'https://api.telegram.org/BOT/sendPhoto?'
function TelegramPhoto(photo)
local data_str = 'chat_id=' .. chat_id .. '&photo=' .. photo ..''
local res, code, headers, status = ssl.https.request(telegram_url_sendphototo,data_str)
log (res,code,headers,status)
end
I try to send LogicMachine Icon Image but it gives me an error.
--TelegramPhoto("http://logicmachineurl:port/scada/resources/icons/door.png")
If I take an image URL from google images there is no problem..
Is posible to get image from LogicMachine icons?
Thanks
I have this function created to send image with Telegram's BOT.
local telegram_url_sendphototo = 'https://api.telegram.org/BOT/sendPhoto?'
function TelegramPhoto(photo)
local data_str = 'chat_id=' .. chat_id .. '&photo=' .. photo ..''
local res, code, headers, status = ssl.https.request(telegram_url_sendphototo,data_str)
log (res,code,headers,status)
end
I try to send LogicMachine Icon Image but it gives me an error.
--TelegramPhoto("http://logicmachineurl:port/scada/resources/icons/door.png")
If I take an image URL from google images there is no problem..
Is posible to get image from LogicMachine icons?
Thanks