From 36294c0b6a33a37a794e7d90f616868c4553307e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 30 Jan 2017 12:30:13 +0100 Subject: [PATCH] Bugfix --- .travis.yml | 2 -- src/danog/MadelineProto/Wrappers/Login.php | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 711b94ae1..7522f6092 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,4 @@ before_script: script: - "tests/testing.php" before_install: -- openssl aes-256-cbc -K $encrypted_0b05103af24b_key -iv $encrypted_0b05103af24b_iv - -in enc.tar.xz.enc -out enc.tar.xz -d - tar -xJpf enc.tar.xz diff --git a/src/danog/MadelineProto/Wrappers/Login.php b/src/danog/MadelineProto/Wrappers/Login.php index 080392ced..f197c08ef 100644 --- a/src/danog/MadelineProto/Wrappers/Login.php +++ b/src/danog/MadelineProto/Wrappers/Login.php @@ -53,7 +53,9 @@ trait Login $this->API->get_updates_state(); $this->API->should_serialize = true; if (!isset($this->API->settings['pwr']['pwr']) || !$this->API->settings['pwr']['pwr']) { - file_get_contents('https://api.pwrtelegram.xyz/bot'.$token.'/getme'); + try { + file_get_contents('https://api.pwrtelegram.xyz/bot'.$token.'/getme'); + } catch (\danog\MadelineProto\Exception $e) { ; }; } \danog\MadelineProto\Logger::log(['Logged in successfully!'], \danog\MadelineProto\Logger::NOTICE);