Skip to content

Commit

Permalink
updated signature
Browse files Browse the repository at this point in the history
  • Loading branch information
madmages committed May 2, 2021
1 parent d4b339a commit f7fe6d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HandlerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/WebhookClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f7fe6d0

Please sign in to comment.