엄성진

Merge remote-tracking branch 'origin/feature_thumbnail'

...@@ -7,6 +7,7 @@ exports.check = function(message,replyToken){ ...@@ -7,6 +7,7 @@ exports.check = function(message,replyToken){
7 'tp1uoFAfgHE', 'Qx22TnVVIfU', '3y1QIqR115A', 'VXBI1wt8XII', 'aWMBn2--E0Q', 'HyTbgBlnLCo']; 7 'tp1uoFAfgHE', 'Qx22TnVVIfU', '3y1QIqR115A', 'VXBI1wt8XII', 'aWMBn2--E0Q', 'HyTbgBlnLCo'];
8 8
9 const request = require('request'); 9 const request = require('request');
10 + const fs = require('fs');
10 const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' 11 const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
11 12
12 13
...@@ -52,6 +53,11 @@ exports.check = function(message,replyToken){ ...@@ -52,6 +53,11 @@ exports.check = function(message,replyToken){
52 "messages": 53 "messages":
53 [ 54 [
54 { 55 {
56 + "type": "image",
57 + "originalContentUrl": "https://img.youtube.com/vi/"+ids[rand_0to9]+"/hqdefault.jpg",
58 + "previewImageUrl": "https://img.youtube.com/vi/"+ids[rand_0to9]+"/hqdefault.jpg"
59 + },
60 + {
55 "type": "text", 61 "type": "text",
56 "text": sendMessage 62 "text": sendMessage
57 } 63 }
......