summaryrefslogtreecommitdiff
path: root/src/api/bot/interfaces
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-10-07 19:37:51 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-10-07 19:37:51 +0900
commit103979dd6ff567ca72a08411b9c0859a0f8bb6fc (patch)
tree844e434633879de720e47abfeaf4aae0d1b26fc3 /src/api/bot/interfaces
parent:v: (diff)
downloadsharkey-103979dd6ff567ca72a08411b9c0859a0f8bb6fc.tar.gz
sharkey-103979dd6ff567ca72a08411b9c0859a0f8bb6fc.tar.bz2
sharkey-103979dd6ff567ca72a08411b9c0859a0f8bb6fc.zip
:v:
Diffstat (limited to 'src/api/bot/interfaces')
-rw-r--r--src/api/bot/interfaces/line.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/bot/interfaces/line.ts b/src/api/bot/interfaces/line.ts
index 06b46c953b..956dcc6574 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) {