DEV Community

Discussion on: Creating a Whatsapp chatbot using Node JS, Dialogflow and Twilio

Collapse
 
abubakr28355335 profile image
Abubakr Elghazawy

our botcontroller.ts should we put our local server like that

@Controller("localhost:3000/api/bot")
export class BotController {
@post ()
private postMessage(request: Request, response: Response) {
Logger.Info("A post request has been received");
return response.status(200).json({
message: "A post request has been received"
});
}

}
or ngrok server
7b2eac7593d3.ngrok.io -> localhost:3000