From 48b47c9bc2257874a74aadbc22947467c8474397 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 6 Jan 2017 00:52:46 +0300 Subject: [PATCH] Type cast for $sendMessage->chat_id. --- .../Bundle/PointToolsBundle/Service/Telegram/SimpleSender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/SimpleSender.php b/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/SimpleSender.php index da62a35..31cfad7 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/SimpleSender.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/SimpleSender.php @@ -35,7 +35,7 @@ class SimpleSender public function sendMessage(int $chatId, string $text): bool { $sendMessage = new SendMessage(); - $sendMessage->chat_id = $chatId; + $sendMessage->chat_id = (string) $chatId; $sendMessage->text = $text; try {