diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-07 19:37:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-07 19:37:51 +0900 |
| commit | 103979dd6ff567ca72a08411b9c0859a0f8bb6fc (patch) | |
| tree | 844e434633879de720e47abfeaf4aae0d1b26fc3 /src/api/bot | |
| parent | :v: (diff) | |
| download | sharkey-103979dd6ff567ca72a08411b9c0859a0f8bb6fc.tar.gz sharkey-103979dd6ff567ca72a08411b9c0859a0f8bb6fc.tar.bz2 sharkey-103979dd6ff567ca72a08411b9c0859a0f8bb6fc.zip | |
:v:
Diffstat (limited to 'src/api/bot')
| -rw-r--r-- | src/api/bot/interfaces/line.ts | 4 |
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) { |