回答編集履歴
1
コード修正(dpPostTest => doPost)
test
CHANGED
@@ -57,7 +57,7 @@
|
|
57
57
|
|
58
58
|
|
59
59
|
//postリクエストを受取ったときに発火する関数
|
60
|
-
function doPost
|
60
|
+
function doPost(e) {
|
61
61
|
|
62
62
|
// 応答用Tokenを取得
|
63
63
|
const replyToken = JSON.parse(e.postData.contents).events[0].replyToken;
|
@@ -103,8 +103,8 @@
|
|
103
103
|
}
|
104
104
|
|
105
105
|
// 自動返信を送信する
|
106
|
-
|
106
|
+
const autoReplySheet = sheet.getSheetByName("ReplyText");
|
107
|
-
|
107
|
+
const messageToSend = autoReplySheet.getRange(2, 2).getValue();
|
108
108
|
const message = [{
|
109
109
|
'type': 'text',
|
110
110
|
'text': messageToSend,
|