Completed
Pull Request — develop (#382)
by
unknown
03:13
created
src/Telegram.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
             throw new TelegramException('No command(s) provided!');
846 846
         }
847 847
 
848
-        $this->botan_enabled = false;   // Force disable Botan.io integration, we don't want to track self-executed commands!
848
+        $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands!
849 849
 
850 850
         $result = Request::getMe()->getResult();
851 851
 
@@ -875,8 +875,8 @@  discard block
 block discarded – undo
875 875
 
876 876
         $update = array_merge($update_template, $update);
877 877
 
878
-        $this->enableAdmin($bot_id);    // Give bot access to admin commands
879
-        $this->getCommandsList();       // Load full commands list
878
+        $this->enableAdmin($bot_id); // Give bot access to admin commands
879
+        $this->getCommandsList(); // Load full commands list
880 880
 
881 881
         foreach ($commands as $command => $parameter) {
882 882
             if (is_numeric($command)) {     // if array/key is not associative $command will be integer and $parameter will be the actual command!
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
                 $temp_update['message']['text'] = $parameter;
890 890
             }
891 891
 
892
-            $this->update = new Update($temp_update);    // this prevents commands throwing exceptions about missing Update objects
892
+            $this->update = new Update($temp_update); // this prevents commands throwing exceptions about missing Update objects
893 893
 
894 894
             $this->executeCommand($command);
895 895
         }
Please login to merge, or discard this patch.