@@ -238,7 +238,7 @@ |
||
238 | 238 | * |
239 | 239 | * @param \Longman\TelegramBot\Entities\File $file |
240 | 240 | * |
241 | - * @return boolean |
|
241 | + * @return boolean|string |
|
242 | 242 | * @throws \Longman\TelegramBot\Exception\TelegramException |
243 | 243 | */ |
244 | 244 | public static function downloadFile(File $file) |
@@ -908,7 +908,7 @@ discard block |
||
908 | 908 | } |
909 | 909 | |
910 | 910 | $this->run_commands = true; |
911 | - $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands! |
|
911 | + $this->botan_enabled = false; // Force disable Botan.io integration, we don't want to track self-executed commands! |
|
912 | 912 | |
913 | 913 | $result = Request::getMe()->getResult(); |
914 | 914 | |
@@ -920,8 +920,8 @@ discard block |
||
920 | 920 | $bot_name = $result->getFirstName(); |
921 | 921 | $bot_username = $result->getUsername(); |
922 | 922 | |
923 | - $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
924 | - $this->getCommandsList(); // Load full commands list |
|
923 | + $this->enableAdmin($bot_id); // Give bot access to admin commands |
|
924 | + $this->getCommandsList(); // Load full commands list |
|
925 | 925 | |
926 | 926 | foreach ($commands as $command) { |
927 | 927 | $this->update = new Update( |