From dd45c9b21e20d1f4f3c8786bd669e16d2a86c2bd Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Mon, 2 Sep 2019 19:51:19 +0300 Subject: [PATCH] Add nl2br message in WebDriver::buildReply() --- src/WebDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebDriver.php b/src/WebDriver.php index afeb3e5..140ff4e 100644 --- a/src/WebDriver.php +++ b/src/WebDriver.php @@ -210,7 +210,7 @@ protected function buildReply($messages) $attachmentData = (is_null($message->getAttachment())) ? null : $message->getAttachment()->toWebDriver(); $reply = [ 'type' => 'text', - 'text' => $message->getText(), + 'text' => nl2br($message->getText()), 'attachment' => $attachmentData, ]; }