From 4811b64f00d2fc65bc5948cc300d682ecce9f93a Mon Sep 17 00:00:00 2001 From: AardCrowley Date: Tue, 29 Nov 2022 09:49:25 -0500 Subject: [PATCH] CallPlugin functionality added. --- Telegram.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram.xml b/Telegram.xml index 4224bf2..a0333a0 100644 --- a/Telegram.xml +++ b/Telegram.xml @@ -52,7 +52,7 @@ for _,v in ipairs(triggerLines) do ImportXML(triggerXML) end -chatID = +chatID = apiToken = "" @@ -69,10 +69,10 @@ function url_encode(str) return str end -function pageRequest(req, protocol) - local req = string.format(alertFormat, req) +function pageRequest(req) + local req = string.format(alertFormat, url.escape(req)) if async_ok then - async.doAsyncRemoteRequest(req, "", protocol) + async.doAsyncRemoteRequest(req, "", "HTTPS") else ColourNote("white", "blue", "Async failed to load for some reason.") end @@ -90,7 +90,7 @@ function sendAlert(name, line, wildcards) else msg = "Test notification." end - pageRequest(msg, "HTTPS") + pageRequest(msg) end function toggleConfig(name, line, wildcards)