Skip to content

Commit

Permalink
Merge pull request #15 from ta-vivo/whatsapp-api
Browse files Browse the repository at this point in the history
feat
  • Loading branch information
itsalb3rt authored Jun 22, 2024
2 parents 38e59f9 + 43cc5ef commit 3c61e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/MessagesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MessagesService {
type: "template",
template: { ...template, language: { code: "en" } }
}
const url = `https://graph.facebook.com/v14.0/${phoneNumberId}/messages`;
const url = `https://graph.facebook.com/v20.0/${phoneNumberId}/messages`;

try {
return axios({
Expand All @@ -33,7 +33,7 @@ class MessagesService {
throw error;
}
}

static async sendMessage({ to, message }) {
const token = process.env.WHATSAPP_TOKEN;
const phoneNumberId = process.env.WHATSAPP_PHONE_ID;
Expand Down

0 comments on commit 3c61e2b

Please sign in to comment.