From 6c830d5be3a9540c94065349090c6e8692a888db Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 9 Jun 2017 21:42:32 +0100 Subject: [PATCH] fixes --- src/danog/MadelineProto/MTProto.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index a8de1bbc..b3c32bad 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -384,14 +384,14 @@ class MTProto extends \Volatile // Detect device model try { $device_model = php_uname('s'); - } catch (Exception $e) { + } catch (\danog\MadelineProto\Exception $e) { $device_model = 'Web server'; } // Detect system version try { $system_version = php_uname('r'); - } catch (Exception $e) { + } catch (\danog\MadelineProto\Exception $e) { $system_version = phpversion(); } @@ -536,7 +536,7 @@ class MTProto extends \Volatile ]; $settings = array_replace_recursive($this->array_cast_recursive($default_settings, true), $this->array_cast_recursive($settings, true)); if (!isset($settings['app_info']['api_id'])) { - throw new Exception('You must provide an api key and an api id, get your own @ my.telegram.org'); + throw new \danog\MadelineProto\Exception('You must provide an api key and an api id, get your own @ my.telegram.org'); } switch ($settings['logger']['logger_level']) { case 'ULTRA_VERBOSE': $settings['logger']['logger_level'] = 5; break;