@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | } |
429 | 429 | |
430 | 430 | if ($this->last_update_id !== null) { |
431 | - $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
431 | + $offset = $this->last_update_id + 1; //As explained in the telegram bot API documentation |
|
432 | 432 | } |
433 | 433 | |
434 | 434 | $response = Request::getUpdates( |
@@ -903,7 +903,7 @@ discard block |
||
903 | 903 | throw new TelegramException('Hook url is empty!'); |
904 | 904 | } |
905 | 905 | |
906 | - $data = array_intersect_key($data, array_flip([ |
|
906 | + $data = array_intersect_key($data, array_flip([ |
|
907 | 907 | 'certificate', |
908 | 908 | 'max_connections', |
909 | 909 | 'allowed_updates', |
@@ -1019,7 +1019,7 @@ discard block |
||
1019 | 1019 | // Give bot access to admin commands |
1020 | 1020 | $this->enableAdmin($bot_id); |
1021 | 1021 | |
1022 | - $newUpdate = static function ($text = '') use ($bot_id, $bot_name, $bot_username) { |
|
1022 | + $newUpdate = static function($text = '') use ($bot_id, $bot_name, $bot_username) { |
|
1023 | 1023 | return new Update( |
1024 | 1024 | [ |
1025 | 1025 | 'update_id' => 0, |
@@ -1041,8 +1041,8 @@ discard block |
||
1041 | 1041 | ); |
1042 | 1042 | }; |
1043 | 1043 | |
1044 | - $this->update = $newUpdate(); // Required for isAdmin() check inside getCommandObject() |
|
1045 | - $this->commands_objects = $this->getCommandsList(); // Load up-to-date commands list |
|
1044 | + $this->update = $newUpdate(); // Required for isAdmin() check inside getCommandObject() |
|
1045 | + $this->commands_objects = $this->getCommandsList(); // Load up-to-date commands list |
|
1046 | 1046 | |
1047 | 1047 | foreach ($commands as $command) { |
1048 | 1048 | $this->update = $newUpdate($command); |