From 565ec33a19872addbc21da85ec88e3969a062fa5 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 6 Jan 2017 20:24:40 +0300 Subject: [PATCH] Small fix after refactoring. --- .../PointToolsBundle/Service/Telegram/MessageSender.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/MessageSender.php b/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/MessageSender.php index e8fee89..ee42910 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/MessageSender.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/MessageSender.php @@ -36,7 +36,7 @@ class MessageSender string $parseMode = self::PARSE_MODE_NOPARSE, ReplyKeyboardMarkup $keyboardMarkup = null, bool $disableWebPreview = false, - $disableNotifications = false + bool $disableNotifications = false ): bool { return $this->sendMessageToChat($account->getChatId(), $text, $parseMode, $keyboardMarkup, $disableWebPreview, $disableNotifications); @@ -48,12 +48,16 @@ class MessageSender string $parseMode = self::PARSE_MODE_NOPARSE, ReplyKeyboardMarkup $keyboardMarkup = null, bool $disableWebPreview = false, - $disableNotifications = false + bool $disableNotifications = false ): bool { $sendMessage = new SendMessage(); $sendMessage->chat_id = (string) $chatId; $sendMessage->text = $text; + $sendMessage->parse_mode = $parseMode; + $sendMessage->disable_web_page_preview = $disableWebPreview; + $sendMessage->disable_notification = $disableNotifications; + $sendMessage->reply_markup = $keyboardMarkup; try { $this->client->performApiRequest($sendMessage);