@@ -801,7 +801,7 @@ |
||
| 801 | 801 | /** |
| 802 | 802 | * Delete any assigned webhook |
| 803 | 803 | * |
| 804 | - * @return mixed |
|
| 804 | + * @return ServerResponse |
|
| 805 | 805 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 806 | 806 | */ |
| 807 | 807 | public function deleteWebhook() |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | use Longman\TelegramBot\Commands\Command; |
| 19 | 19 | use Longman\TelegramBot\Entities\Update; |
| 20 | 20 | use Longman\TelegramBot\Exception\TelegramException; |
| 21 | -use Longman\TelegramBot\Http\Kernel; |
|
| 22 | 21 | use Longman\TelegramBot\Http\Client; |
| 22 | +use Longman\TelegramBot\Http\Kernel; |
|
| 23 | 23 | use Longman\TelegramBot\Http\Request; |
| 24 | 24 | use Longman\TelegramBot\Http\ServerResponse; |
| 25 | 25 | use PDO; |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Command execute method |
| 56 | 56 | * |
| 57 | - * @return \Longman\TelegramBot\Http\ServerResponse|mixed |
|
| 57 | + * @return \Longman\TelegramBot\Http\ServerResponse |
|
| 58 | 58 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 59 | 59 | */ |
| 60 | 60 | public function execute() |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | * |
| 351 | 351 | * @todo Why send just to the first found channel? |
| 352 | 352 | * |
| 353 | - * @return mixed |
|
| 353 | + * @return \Longman\TelegramBot\Http\ServerResponse |
|
| 354 | 354 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 355 | 355 | */ |
| 356 | 356 | public function executeNoDb() |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | /** |
| 287 | 287 | * Set a custom Guzzle HTTP Client object |
| 288 | 288 | * |
| 289 | - * @param Client $client |
|
| 289 | + * @param GuzzleClient $client |
|
| 290 | 290 | * |
| 291 | 291 | * @throws TelegramException |
| 292 | 292 | */ |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | * |
| 441 | 441 | * @param \Longman\TelegramBot\Entities\File $file |
| 442 | 442 | * |
| 443 | - * @return boolean |
|
| 443 | + * @return boolean|string |
|
| 444 | 444 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 445 | 445 | */ |
| 446 | 446 | public static function downloadFile(File $file) |
@@ -37,9 +37,9 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Handle an incoming HTTP request. |
| 39 | 39 | * |
| 40 | - * @param \Longman\TelegramBot\Request2 $request |
|
| 40 | + * @param Request $request |
|
| 41 | 41 | * |
| 42 | - * @return \Longman\TelegramBot\Response |
|
| 42 | + * @return boolean |
|
| 43 | 43 | * |
| 44 | 44 | * @throws \Longman\TelegramBot\Exception\TelegramException |
| 45 | 45 | */ |