router.post('/sms', (req, res)=>{
main();
res.sendStatus(200);
})
res.sendStatus(200) responds with a 'OK' text message instantly. How do I delay responding back to the post request by 10 minutes? Is it possible to acknowledge the post request and then send the message later?
I'm trying to use https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource