diff --git a/Telegram.xml b/Telegram.xml index daeee52..b90a85d 100644 --- a/Telegram.xml +++ b/Telegram.xml @@ -56,7 +56,7 @@ chatID = apiToken = "" -alertFormat = "https://api.telegram.org/" .. apiToken .. "/sendMessage?chat_id=" .. chatID .. "&text=%s" +alertFormat = "https://api.telegram.org/bot" .. apiToken .. "/sendMessage?chat_id=" .. chatID .. "&text=%s" function url_encode(str) if str then @@ -66,7 +66,7 @@ function url_encode(str) end) str = str:gsub(" ", "+") end - return str + return str end function pageRequest(req, protocol)