@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Performs the actual telegram request to telegram's servers |
| 56 | 56 | * |
| 57 | - * @param $method |
|
| 57 | + * @param Telegram\Methods\SendMessage $method |
|
| 58 | 58 | * @return mixed |
| 59 | 59 | */ |
| 60 | 60 | public function performApiRequest($method) |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * @see unreal4u\Telegram\Methods\GetFile |
| 74 | 74 | * |
| 75 | 75 | * @param File $file |
| 76 | - * @return string |
|
| 76 | + * @return TelegramDocument |
|
| 77 | 77 | */ |
| 78 | 78 | public function downloadFile(File $file): TelegramDocument |
| 79 | 79 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | if (!empty($data->photos)) { |
| 36 | 36 | $photoArray = new UserProfilePhotosArray($data->photos); |
| 37 | - $data->photos = [ $photoArray->data ]; |
|
| 37 | + $data->photos = [$photoArray->data]; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | parent::__construct($data); |