Here is that script;
function testtelgram(){
var chat_id = '@SlrPosTickets';
var message = 'Hi from SambaPOS';
var url = 'https://api.telegram.org/bot1154477631:AAElHucd6wld0JtEn-YdhuBqqSbC1yAXtf8/sendMessage?chat_id='+chat_id+'&text='+message;
var request_json = '';
var response_json = web.PostJson(url,request_json);
return response_json
}
Was just coppied from other scripts as all mine post json.
Sure there are several webpost helpers and one without json element.
Expect their api likely will have ability to receive the data as post json rather than url vars which would be cleaner script but same functionality. At leasted based on the fact it returned a json success responce