Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-08 21:43:30 +00:00 committed by StyleCI Bot
parent f82aad3b22
commit aa80209f6f

View File

@ -548,7 +548,7 @@ class MTProto extends \Volatile
if (!isset($settings['app_info']['api_id'])) {
throw new \danog\MadelineProto\Exception('You must provide an api key and an api id, get your own @ my.telegram.org');
}
if ($settings['app_info']['api_id'] < 20) {
$settings['connection_settings']['all']['protocol'] = 'obfuscated2';
}