은승우

Update app.js

Showing 1 changed file with 1 additions and 4 deletions
...@@ -82,7 +82,7 @@ function handleEvent(event) { ...@@ -82,7 +82,7 @@ function handleEvent(event) {
82 } 82 }
83 else if (event.type == 'message'&& event.message.type == 'image') { 83 else if (event.type == 'message'&& event.message.type == 'image') {
84 return new Promise((resolve,reject)=>{ 84 return new Promise((resolve,reject)=>{
85 - client.replyMessage(event.replyToken,event.message).then(resolve).catch(reject); 85 + client.replyMessage(event.replyToken,event.message.originalContentUrl).then(resolve).catch(reject);
86 /*console.log("!"); 86 /*console.log("!");
87 var cheerio = require('cheerio'); 87 var cheerio = require('cheerio');
88 88
...@@ -139,9 +139,6 @@ function handleEvent(event) { ...@@ -139,9 +139,6 @@ function handleEvent(event) {
139 client.replyMessage(event.replyToken,result).then(resolve).catch(reject); 139 client.replyMessage(event.replyToken,result).then(resolve).catch(reject);
140 }); 140 });
141 });*/ 141 });*/
142 -
143 -
144 -
145 }) 142 })
146 } 143 }
147 else if(event.type == 'message' && event.message.type == 'text') 144 else if(event.type == 'message' && event.message.type == 'text')
......