Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-12-05 11:47:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
acd752089b3007ea2752336797b6922101303703
acd75208
1 parent
04b2d4a4
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app.js
app.js
View file @
acd7520
...
...
@@ -82,10 +82,9 @@ function handleEvent(event) {
}
else
if
(
event
.
type
==
'message'
&&
event
.
message
.
type
==
'image'
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
request
.
post
(
options
,
function
(
error
,
response
,
body
){
request
.
post
(
function
(
error
,
response
,
body
){
// Translate API Sucess
if
(
!
error
&&
response
.
statusCode
==
200
){
client
.
replyMessage
(
event
.
replyToken
,
event
.
message
.
originalContentUrl
).
then
(
resolve
).
catch
(
reject
);
}
});
...
...
Please
register
or
login
to post a comment