Skip to content

Instantly share code, notes, and snippets.

@PamornT
Created May 29, 2022 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PamornT/7c8722b38e4a30b4176c19f53607d148 to your computer and use it in GitHub Desktop.
Save PamornT/7c8722b38e4a30b4176c19f53607d148 to your computer and use it in GitHub Desktop.
const reply = async(replyToken, messages) => {
const axios = require("axios")
const data = { replyToken, messages }
const headers = {
'Authorization': `Bearer ${channelAccessToken}`,
'Content-Type': 'application/json'
}
axios.post('https://api.line.me/v2/bot/message/reply', data, {
headers: headers
})
.catch((error) => {
console.log(error)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment