public function toArray() { $this->checkRecipient(); return ['recipient' => ['id' => $this->recipient_id], 'message' => ['text' => MessengerUtils::checkStringLengthAndEncoding($this->text, 320, 'UTF-8')]]; }