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