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);
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
Lol scripts don’t mean fixed. My PMS intergration has sent over 1 million charge lines to group hotels PMS is last 4 years, definatly not fixed scripts. I just did fixed to texf as didnt know your variables.
What your event and what you sending?
Don’t need to query anything, can pass in variables via the call from the action or many other options.
I like working in scripts, rather than complext string of rules you can use dlg helpers to get vars from user input from the script directly.
My new email guest bill for signature posts ticket to website with getTicket graph json and website renders pdf of the ticket and emails guest copy with link to an esign form.
I am using a few input vars as above with this graph query
Key thing is to save the ticket before firing script, that way you have ticket id and lots of routes to get data you need.
Slightly gutted get ticket dosnt include payments as could have cut my PMS scripts by at least a 1/3 if switched to graoh query.