@@ -155,6 +155,7 @@ |
||
155 | 155 | |
156 | 156 | /** |
157 | 157 | * {@inheritdoc} |
158 | + * @param string $arguments |
|
158 | 159 | */ |
159 | 160 | abstract public function handle($arguments); |
160 | 161 | } |
@@ -23,7 +23,6 @@ |
||
23 | 23 | * UpdateWasReceived constructor. |
24 | 24 | * |
25 | 25 | * @param Update $update |
26 | - * @param Api $telegram |
|
27 | 26 | */ |
28 | 27 | public function __construct(Update $update, Bot $bot) |
29 | 28 | { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Telegram\Bot\Answers; |
4 | 4 | |
5 | 5 | use Telegram\Bot\Api; |
6 | -use Telegram\Bot\Objects\Update; |
|
7 | 6 | use Telegram\Bot\Bots\Bot; |
7 | +use Telegram\Bot\Objects\Update; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class Answer |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Telegram\Bot\Laravel; |
4 | 4 | |
5 | -use Telegram\Bot\Bots\Bot; |
|
6 | -use Telegram\Bot\Bots\BotsManager; |
|
7 | -use Illuminate\Support\ServiceProvider; |
|
8 | 5 | use Illuminate\Contracts\Container\Container as 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\Bots\Bot; |
|
10 | +use Telegram\Bot\Bots\BotsManager; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class TelegramServiceProvider. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Returns the list of commands. |
39 | 39 | * |
40 | - * @return array |
|
40 | + * @return Command[] |
|
41 | 41 | */ |
42 | 42 | public function getCommands() |
43 | 43 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * |
171 | 171 | * @throws \InvalidArgumentException |
172 | 172 | * |
173 | - * @return array |
|
173 | + * @return string[] |
|
174 | 174 | */ |
175 | 175 | public function parseCommand($text) |
176 | 176 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Handles Inbound Messages and Executes Appropriate Command. |
188 | 188 | * |
189 | - * @param $message |
|
189 | + * @param string $message |
|
190 | 190 | * @param $update |
191 | 191 | * |
192 | 192 | * @throws TelegramSDKException |
@@ -211,8 +211,8 @@ discard block |
||
211 | 211 | * Execute the command. |
212 | 212 | * |
213 | 213 | * @param $name |
214 | - * @param $arguments |
|
215 | - * @param $message |
|
214 | + * @param string $arguments |
|
215 | + * @param Update $message |
|
216 | 216 | * |
217 | 217 | * @return mixed |
218 | 218 | */ |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace Telegram\Bot\Answers; |
4 | 4 | |
5 | 5 | use Telegram\Bot\Api; |
6 | -use Telegram\Bot\Objects\Update; |
|
7 | 6 | use Telegram\Bot\Bots\Bot; |
7 | +use Telegram\Bot\Objects\Update; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class Answer |