code: public function getMessages()
      {
          return $this->event
              ->filter(function ($event) {
                  return $event['type'] === 'message_create';
              })
              ->map(function ($event) {
                  $message = $event['message_create'];
  
                  return new IncomingMessage($message['message_data']['text'], $message['sender_id'], $message['target']['recipient_id'], $event);
          })->toArray();
      }
docs: Retrieve the chat message(s).
  
  @return array