@@ -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. |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * @var bool $params ['disable_web_page_preview'] |
806 | 806 | * @var string $params ['reply_markup'] |
807 | 807 | * |
808 | - * @return TelegramResponse |
|
808 | + * @return Message |
|
809 | 809 | */ |
810 | 810 | public function editMessageText(array $params) |
811 | 811 | { |
@@ -837,7 +837,7 @@ discard block |
||
837 | 837 | * @var string $params ['caption'] |
838 | 838 | * @var string $params ['reply_markup'] |
839 | 839 | * |
840 | - * @return TelegramResponse |
|
840 | + * @return Message |
|
841 | 841 | */ |
842 | 842 | public function editMessageCaption(array $params) |
843 | 843 | { |
@@ -867,7 +867,7 @@ discard block |
||
867 | 867 | * @var string $params ['inline_message_id'] |
868 | 868 | * @var string $params ['reply_markup'] |
869 | 869 | * |
870 | - * @return TelegramResponse |
|
870 | + * @return Message |
|
871 | 871 | */ |
872 | 872 | public function editMessageReplyMarkup(array $params) |
873 | 873 | { |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | * |
897 | 897 | * @throws TelegramSDKException |
898 | 898 | * |
899 | - * @return TelegramResponse |
|
899 | + * @return Message |
|
900 | 900 | */ |
901 | 901 | public function setWebhook(array $params) |
902 | 902 | { |
@@ -998,7 +998,7 @@ discard block |
||
998 | 998 | * @var bool $params ['one_time_keyboard'] |
999 | 999 | * @var bool $params ['selective'] |
1000 | 1000 | * |
1001 | - * @return string |
|
1001 | + * @return Keyboard |
|
1002 | 1002 | */ |
1003 | 1003 | public function replyKeyboardMarkup(array $params) |
1004 | 1004 | { |
@@ -1132,7 +1132,7 @@ discard block |
||
1132 | 1132 | /** |
1133 | 1133 | * Detect Message Type Based on Update or Message Object. |
1134 | 1134 | * |
1135 | - * @param Update|Message $object |
|
1135 | + * @param Message $object |
|
1136 | 1136 | * |
1137 | 1137 | * @return string|null |
1138 | 1138 | */ |
@@ -1227,7 +1227,7 @@ discard block |
||
1227 | 1227 | * Used primarily for file uploads. |
1228 | 1228 | * |
1229 | 1229 | * @param string $endpoint |
1230 | - * @param array $params |
|
1230 | + * @param string $params |
|
1231 | 1231 | * |
1232 | 1232 | * @throws TelegramSDKException |
1233 | 1233 | * |
@@ -1434,7 +1434,7 @@ discard block |
||
1434 | 1434 | * @var string|null $params ['switch_pm_text'] |
1435 | 1435 | * @var string|null $params ['switch_pm_parameter'] |
1436 | 1436 | * |
1437 | - * @return bool |
|
1437 | + * @return TelegramResponse |
|
1438 | 1438 | */ |
1439 | 1439 | public function answerInlineQuery(array $params = []) |
1440 | 1440 | { |
@@ -6,16 +6,16 @@ |
||
6 | 6 | use Telegram\Bot\Commands\CommandBus; |
7 | 7 | use Telegram\Bot\Exceptions\TelegramSDKException; |
8 | 8 | use Telegram\Bot\FileUpload\InputFile; |
9 | +use Telegram\Bot\Helpers\Emojify; |
|
9 | 10 | use Telegram\Bot\HttpClients\GuzzleHttpClient; |
10 | 11 | use Telegram\Bot\HttpClients\HttpClientInterface; |
12 | +use Telegram\Bot\Keyboard\Keyboard; |
|
11 | 13 | use Telegram\Bot\Objects\File; |
12 | 14 | use Telegram\Bot\Objects\Message; |
13 | 15 | use Telegram\Bot\Objects\UnknownObject; |
14 | 16 | use Telegram\Bot\Objects\Update; |
15 | 17 | use Telegram\Bot\Objects\User; |
16 | 18 | use Telegram\Bot\Objects\UserProfilePhotos; |
17 | -use Telegram\Bot\Keyboard\Keyboard; |
|
18 | -use Telegram\Bot\Helpers\Emojify; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * Class Api. |