diff --git a/src/Attachment.php b/src/Attachment.php index 734a01b..e02ae7f 100644 --- a/src/Attachment.php +++ b/src/Attachment.php @@ -685,7 +685,7 @@ public function toArray() 'color' => $this->getColor(), 'footer' => $this->getFooter(), 'footer_icon' => $this->getFooterIcon(), - 'ts' => $this->getTimestamp() ? $this->getTimestamp()->getTimestamp() : null, + 'ts' => $this->getTimestamp() ? $this->getTimestamp() : null, 'mrkdwn_in' => $this->getMarkdownFields(), 'image_url' => $this->getImageUrl(), 'thumb_url' => $this->getThumbUrl(),