1
テレグラムボットとGoogleスプレッドシートとの通信に問題があります。昨日、私はそれを使用して作業していますが、今日はうまく動作しますが、今日は動作しません。 別のGoogleアカウントと別のBotを作成しますが、動作しません。 これは私のGoogleのスクリプトです:このコードでテレグラムロボットとgoogleシートとの通信方法
var token="123197063:AAH04kulz7tRqPz3vbDcgYdVje18WH2Pv-4";
var telegramUrl= "https://api.telegram.org/bot"+token;
var webAppUrl = "https://script.google.com/macros/s/AKfycbwqvJWsWcm_5_Y1vhYEkSN2G9dxiDBzQIvYvbte-3_HfGcGFN3a/exec";
function getMe(){
var url = telegramUrl+"/getMe";
var response = UrlFetchApp.fetch(url);
Logger.log(response.getContentText());
}
function setWebhook() {
var url = telegramUrl+"/setWebhook?url="+webAppUrl;
var response = UrlFetchApp.fetch(url);
Logger.log(response.getContentText());
}
function doGet(e){
return HtmlService.createHtmlOutput("hi this is my first project");
}
function dePost(e){
GmailApp.sendEmail(Session.getEffectiveUser().getEmail(), "message from bot", JSON.stringify(e, null, 4));
}
私は電報ボットに何かを書くとき、Googleスプレッドシートは、私に電子メールを送信する必要がありますが、それは今日動作することはできません。 これは私のボットアドレスです:@irmec_bot
あなたはそれがうまくいかないと思いますか? 助けてください ありがとう