From a68d6c4c9ca47634d96991577e8f4fbf71ace1bb Mon Sep 17 00:00:00 2001 From: Alexander Markov Date: Mon, 13 Nov 2023 03:16:56 +0300 Subject: [PATCH] fixed passing getEvents query params --- src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php b/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php index 87a3622..bad2979 100644 --- a/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php +++ b/src/VK/CallbackApi/VKCallbackApiLongPollExecutor.php @@ -157,8 +157,10 @@ public function getEvents(string $host, string $key, int $ts) { static::PARAM_ACT => static::VALUE_ACT ); + $query_string = http_build_query($params); + try { - $response = $this->http_client->get($host, $params); + $response = $this->http_client->get($host . '?' . $query_string); } catch (GuzzleException $exception) { throw new VKClientException($exception); }