Skip to content

Commit

Permalink
Update adding reminder text
Browse files Browse the repository at this point in the history
  • Loading branch information
schwasa authored Feb 6, 2024
1 parent 3d12fa6 commit d58647c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ app.post('/intent', async (req, res) => {

app.post('/template/scheduler', async (req, res) => {
try {
const { user_id, phone_number_id } = req.body;
const { user_id, phone_number_id, reminder_text } = req.body;
let user_id_plain = decrypt(user_id);
let data = JSON.stringify({
"messaging_product": "whatsapp",
Expand All @@ -682,6 +682,15 @@ app.post('/template/scheduler', async (req, res) => {
"code": "en"
},
"components": [
{
"type": "body",
"parameters": [
{
"type": "text",
"text": reminder_text
}
]
},
{
"type": "button",
"sub_type": "quick_reply",
Expand Down

0 comments on commit d58647c

Please sign in to comment.