Callback function when receiving message from whatsapp server

def on_message(self, message_protocol_entity):
        """
        Callback function when receiving message from whatsapp server
        """
        logger.info("Message id %s received" % message_protocol_entity.getId())
        # answer with receipt
        self.toLower(message_protocol_entity.ack())