From 651e1afd66ef7500fe1ad4adf7b3e06a17e47396 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 30 Mar 2019 13:01:47 +0000 Subject: [PATCH] Improve config fetching --- src/danog/MadelineProto/MTProto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 76ba2e4b..815cee54 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -846,7 +846,7 @@ class MTProto implements TLCallback public function get_phone_config_async($watcherId = null) { - if ($this->authorized === self::LOGGED_IN && class_exists('\\danog\\MadelineProto\\VoIPServerConfig')) { + if ($this->authorized === self::LOGGED_IN && class_exists('\\danog\\MadelineProto\\VoIPServerConfig') && !$this->authorization['user']['bot']) { $this->logger->logger("Fetching phone config..."); VoIPServerConfig::updateDefault(yield $this->method_call_async_read('phone.getCallConfig', [], ['datacenter' => $this->settings['connection_settings']['default_dc']])); } else {