I wrote a telegrambot using Google Apps Script.
And I coded like this:
function setWebhook() {
const resp = UrlFetchApp.fetch(botUrl + "/setWebhook?url=" + hookUrl);
Logger.log("SetWebhook response:", resp.getResponseCode());
}
function getWebhook() {
const resp = UrlFetchApp.fetch(botUrl + "/getWebhookInfo");
if (resp.getResponseCode() == 200) {
const data = JSON.parse(resp.getContentText());
Logger.log("Current webhook is", data.result);
} else {
Logger.log("GetWebhook response:", resp.getResponseCode());
}
}
After I select the function getWebhook and click RUN, a pop-up window says "this app isn't verified".
Then I click Advanced and click Go to TGBot (Unsafe), but the verification is still unsuccessful, and a toast says "Something went wrong, try again".
What I have tried:
- switch my browser from Chrome to Edge
- Use different Google accounts, and start a new project
- Erase my browser data
But nothing is working.