Using this code you can directly deploy your whatsapp chatbot in a lambda function in AWS and can make it work.
This File consists of Code which is an event listener, and sends responses accordingly.
You need to edit Verify token which you can put a string of your choice. You need to edit whatsapp token which you need to copy from the api set up screen in your app section.