function sendText(id,text) {
if(text == "hiii"){
var url = telegramUrl + "/sendMessage?chat_id=" + id + "&text=" + "sup?";
} else{
var url = telegramUrl + "/sendMessage?chat_id=" + id + "&text=" + "yo yo yo";
var response = UrlFetchApp.fetch(url);
Logger.log(response.getContentText());
}
}
我的问题是,在Google Scripts(Google表格的后端)中,我有这个函数从电报中读取消息,如果消息显示为“hiii”,它应该响应“sup?”。目前我的代码不执行此操作,而只执行else语句。