From 103979dd6ff567ca72a08411b9c0859a0f8bb6fc Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 7 Oct 2017 19:37:51 +0900 Subject: [PATCH] :v: --- src/api/bot/interfaces/line.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/bot/interfaces/line.ts b/src/api/bot/interfaces/line.ts index 06b46c953..956dcc657 100644 --- a/src/api/bot/interfaces/line.ts +++ b/src/api/bot/interfaces/line.ts @@ -73,8 +73,8 @@ class LineBot extends BotCore { }]); } // postback - } else if (ev.message.type == 'postback') { - const data = ev.message.postback.data; + } else if (ev.type == 'postback') { + const data = ev.postback.data; const cmd = data.split('|')[0]; const arg = data.split('|')[1]; switch (cmd) {