From f7fe6d095ba43852555ae393d4604996edbbc994 Mon Sep 17 00:00:00 2001 From: "a.kalin" Date: Sun, 2 May 2021 04:37:45 +0300 Subject: [PATCH] updated signature --- src/HandlerMiddleware.php | 2 +- src/WebhookClient.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HandlerMiddleware.php b/src/HandlerMiddleware.php index 0ef03df..1b80e07 100644 --- a/src/HandlerMiddleware.php +++ b/src/HandlerMiddleware.php @@ -29,7 +29,7 @@ public function __construct(Update $update, Container $container) // #2 - specific handler if ($this->foundHandler === null) { - foreach ($update->_getRawData() as $key => $value) { + foreach ($update->_getData() as $key => $value) { if ($value === null) { continue; } diff --git a/src/WebhookClient.php b/src/WebhookClient.php index f869750..164c1e3 100644 --- a/src/WebhookClient.php +++ b/src/WebhookClient.php @@ -16,7 +16,7 @@ class WebhookClient extends \MadmagesTelegram\Types\Client * @return mixed * @throws \JsonException */ - public function _rawApiCall(string $method, array $parameters): JsonResponse + public function _apiCall(string $method, array $parameters): JsonResponse { $parameters['method'] = $method;