Hello i am making a script for my telegram bot to link this telegram bot to a google spreadsheets. I'm currently following this series guide https://www.youtube.com/watch?v=gw0tlbpCx5U&index=2&list=PLGGHwNnXfci86dfqIVLc5l391SPk-RX1F on youtube and so far I've gotten till here:
var token = "498597656:AAHeOLuQ2h-CIMwmlFhW0ScagdwQSFa01g4";
var url = "https://api.telegram.org/bot" + token;
var webAppUrl = "https://script.google.com/macros/u/0/s/AKfycbybIPzAHjjXgSVJMvZDEajhbdtpK6rcwZrra-7Q2jyUEOyjkAg/exec";
function getMe() {
var response = UrlFetchApp.fetch(url + "/getMe");
Logger.log(response.getContentText());
}
function getUpdates() {
var response = UrlFetchApp.fetch(url + "/getUpdates");
Logger.log(response.getContentText());
}
function doGet(e) {
return HtmlService.createHtmlOutput("Hello " + JSON.stringfy(e));
}
But when i try to publish webapp, i get a page not found error, https://script.google.com/macros/u/0/s/AKfycbybIPzAHjjXgSVJMvZDEajhbdtpK6rcwZrra-7Q2jyUEOyjkAg/exec, that is the url of the webapp. Could someone help me? This is the first time im coding so i have been following the youtube guide.