1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 14:34:39 +01:00

Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-01-16 00:57:03 +00:00 committed by StyleCI Bot
parent cac6b68920
commit 6e6fa9671e

View File

@ -52,7 +52,9 @@ trait Login
$this->API->updates_key = 0;
$this->API->get_updates_state();
$this->API->should_serialize = true;
if (!isset($this->API->settings['pwr']['pwr']) || !$this->settings['pwr']['pwr']) file_get_contents('https://api.pwrtelegram.xyz/bot'.$token.'/getme');
if (!isset($this->API->settings['pwr']['pwr']) || !$this->settings['pwr']['pwr']) {
file_get_contents('https://api.pwrtelegram.xyz/bot'.$token.'/getme');
}
\danog\MadelineProto\Logger::log('Logged in successfully!');
return $this->API->datacenter->authorization;