From 78ff4adef8f9aacf8bdd777f67b02f3d5278eb8b Mon Sep 17 00:00:00 2001 From: KonstantinLev Date: Wed, 21 Aug 2024 11:24:12 +0300 Subject: [PATCH] __construct supports passing in Client, but passing in GuzzleHttp\Client will report an error --- src/Telegram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Telegram.php b/src/Telegram.php index b76a8f8..35aaadc 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -159,7 +159,7 @@ class Telegram */ private bool $enableEvents = false; - public function __construct(string $token, ?TelegramHttpClientInterface $client = null) + public function __construct(string $token, ?ClientInterface $client = null) { $this->token = $token; $this->apiClient = $client ?? new Client();