@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | /** |
| 392 | 392 | * \brief Set current chat ID. |
| 393 | 393 | * \details Change the chat ID on which the bot acts. |
| 394 | - * @param $chat_id The new chat ID to set. |
|
| 394 | + * @param string $chat_id The new chat ID to set. |
|
| 395 | 395 | */ |
| 396 | 396 | public function setChatID($chat_id) |
| 397 | 397 | { |
@@ -447,7 +447,6 @@ discard block |
||
| 447 | 447 | * brief Process an API method by taking method and parameter. |
| 448 | 448 | * \details optionally create a object of $class class name with the response as constructor param. |
| 449 | 449 | * @param string $method Method to call. |
| 450 | - * @param array $param Parameter for the method. |
|
| 451 | 450 | * @param string $class Class name of the object to create using response. |
| 452 | 451 | * @return mixed Response or object of $class class name. |
| 453 | 452 | */ |
@@ -525,6 +524,9 @@ discard block |
||
| 525 | 524 | return $this->checkRequestError($response); |
| 526 | 525 | } |
| 527 | 526 | |
| 527 | + /** |
|
| 528 | + * @param \Psr\Http\Message\ResponseInterface $response |
|
| 529 | + */ |
|
| 528 | 530 | public function checkRequestError($response) |
| 529 | 531 | { |
| 530 | 532 | $http_code = $response->getStatusCode(); |