Type cast for $sendMessage->chat_id.
This commit is contained in:
parent
8f9bb3a71e
commit
48b47c9bc2
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue