1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 07:18:57 +01:00
This commit is contained in:
Daniil Gentili 2017-01-30 12:30:13 +01:00
parent 7f5b798427
commit 36294c0b6a
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);