@@ -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. |
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | use Telegram\Bot\FileUpload\InputFile; |
| 9 | 9 | use Telegram\Bot\HttpClients\GuzzleHttpClient; |
| 10 | 10 | use Telegram\Bot\HttpClients\HttpClientInterface; |
| 11 | +use Telegram\Bot\Keyboard\Keyboard; |
|
| 11 | 12 | use Telegram\Bot\Objects\File; |
| 12 | 13 | use Telegram\Bot\Objects\Message; |
| 13 | 14 | use Telegram\Bot\Objects\UnknownObject; |
| 14 | 15 | use Telegram\Bot\Objects\Update; |
| 15 | 16 | use Telegram\Bot\Objects\User; |
| 16 | 17 | use Telegram\Bot\Objects\UserProfilePhotos; |
| 17 | -use Telegram\Bot\Keyboard\Keyboard; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Class Api. |
@@ -1178,7 +1178,6 @@ discard block |
||
| 1178 | 1178 | * @link https://core.telegram.org/bots/api#getupdates |
| 1179 | 1179 | * |
| 1180 | 1180 | * @param array $params |
| 1181 | - * @param bool $emitUpdateWasReceivedEvents |
|
| 1182 | 1181 | * @var int|null $params ['offset'] |
| 1183 | 1182 | * @var int|null $params ['limit'] |
| 1184 | 1183 | * @var int|null $params ['timeout'] |
@@ -1230,7 +1229,7 @@ discard block |
||
| 1230 | 1229 | * @var bool $params ['one_time_keyboard'] |
| 1231 | 1230 | * @var bool $params ['selective'] |
| 1232 | 1231 | * |
| 1233 | - * @return string |
|
| 1232 | + * @return Keyboard |
|
| 1234 | 1233 | */ |
| 1235 | 1234 | public function replyKeyboardMarkup(array $params) |
| 1236 | 1235 | { |
@@ -1257,7 +1256,7 @@ discard block |
||
| 1257 | 1256 | * @var bool $params ['hide_keyboard'] |
| 1258 | 1257 | * @var bool $params ['selective'] |
| 1259 | 1258 | * |
| 1260 | - * @return string |
|
| 1259 | + * @return Keyboard |
|
| 1261 | 1260 | */ |
| 1262 | 1261 | public static function replyKeyboardHide(array $params = []) |
| 1263 | 1262 | { |
@@ -1284,7 +1283,7 @@ discard block |
||
| 1284 | 1283 | * @var bool $params ['force_reply'] |
| 1285 | 1284 | * @var bool $params ['selective'] |
| 1286 | 1285 | * |
| 1287 | - * @return string |
|
| 1286 | + * @return Keyboard |
|
| 1288 | 1287 | */ |
| 1289 | 1288 | public static function forceReply(array $params = []) |
| 1290 | 1289 | { |
@@ -1364,7 +1363,7 @@ discard block |
||
| 1364 | 1363 | * |
| 1365 | 1364 | * @throws \ErrorException |
| 1366 | 1365 | * |
| 1367 | - * @return bool |
|
| 1366 | + * @return boolean|null |
|
| 1368 | 1367 | */ |
| 1369 | 1368 | public function isMessageType($type, $object) |
| 1370 | 1369 | { |
@@ -1445,7 +1444,7 @@ discard block |
||
| 1445 | 1444 | * Used primarily for file uploads. |
| 1446 | 1445 | * |
| 1447 | 1446 | * @param string $endpoint |
| 1448 | - * @param array $params |
|
| 1447 | + * @param string $params |
|
| 1449 | 1448 | * |
| 1450 | 1449 | * @throws TelegramSDKException |
| 1451 | 1450 | * |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param $line |
| 159 | 159 | * @param $replace |
| 160 | - * @param $delimiter |
|
| 160 | + * @param string $delimiter |
|
| 161 | 161 | * |
| 162 | 162 | * @return mixed |
| 163 | 163 | */ |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * |
| 176 | 176 | * @param $line |
| 177 | 177 | * @param $replace |
| 178 | - * @param $delimiter |
|
| 178 | + * @param string $delimiter |
|
| 179 | 179 | * |
| 180 | 180 | * @return mixed |
| 181 | 181 | */ |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | private $eventEmitter; |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param EventInterface|string $event |
|
| 16 | + * @param UpdateWasReceived $event |
|
| 17 | 17 | * @throws \InvalidArgumentException |
| 18 | 18 | * @return bool true if emitted, false otherwise |
| 19 | 19 | */ |