Type cast for $sendMessage->chat_id.

This commit is contained in:
Alexey Skobkin 2017-01-06 00:52:46 +03:00
parent 8f9bb3a71e
commit 48b47c9bc2

View file

@ -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 {