@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | * |
| 657 | 657 | * @throws TelegramSDKException |
| 658 | 658 | * |
| 659 | - * @return TelegramResponse |
|
| 659 | + * @return Message |
|
| 660 | 660 | */ |
| 661 | 661 | public function setWebhook(array $params) |
| 662 | 662 | { |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | /** |
| 882 | 882 | * Detect Message Type Based on Update or Message Object. |
| 883 | 883 | * |
| 884 | - * @param Update|Message $object |
|
| 884 | + * @param Message $object |
|
| 885 | 885 | * |
| 886 | 886 | * @return string|null |
| 887 | 887 | */ |
@@ -946,7 +946,7 @@ discard block |
||
| 946 | 946 | * Used primarily for file uploads. |
| 947 | 947 | * |
| 948 | 948 | * @param string $endpoint |
| 949 | - * @param array $params |
|
| 949 | + * @param string $params |
|
| 950 | 950 | * |
| 951 | 951 | * @throws TelegramSDKException |
| 952 | 952 | * |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | /** |
| 102 | 102 | * Get the services provided by the provider. |
| 103 | 103 | * |
| 104 | - * @return array |
|
| 104 | + * @return string[] |
|
| 105 | 105 | */ |
| 106 | 106 | public function provides() |
| 107 | 107 | { |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telegram\Bot\Laravel; |
| 4 | 4 | |
| 5 | -use Telegram\Bot\Api; |
|
| 6 | -use Telegram\Bot\BotsManager; |
|
| 7 | -use Illuminate\Support\ServiceProvider; |
|
| 8 | 5 | use Illuminate\Contracts\Foundation\Application; |
| 9 | -use Laravel\Lumen\Application as LumenApplication; |
|
| 10 | 6 | use Illuminate\Foundation\Application as LaravelApplication; |
| 7 | +use Illuminate\Support\ServiceProvider; |
|
| 8 | +use Laravel\Lumen\Application as LumenApplication; |
|
| 9 | +use Telegram\Bot\Api; |
|
| 10 | +use Telegram\Bot\BotsManager; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Class TelegramServiceProvider. |