diff --git a/bot.php b/bot.php index 078dae93..33cbc70b 100755 --- a/bot.php +++ b/bot.php @@ -58,7 +58,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler } } } -$settings = ['logger' => ['logger_level' => 5], 'connection_settings' => ['all' => ['protocol' => 'tcp_abridged', 'proxy' => SocksProxy::getName(), 'proxy_extra' => ['address' => '1.pwrtelegram.xyz', 'port' => 1080]]]]; +$settings = ['logger' => ['logger_level' => 5]]; $MadelineProto = new \danog\MadelineProto\API('bot.madeline', $settings); $MadelineProto->async(true); diff --git a/src/danog/MadelineProto/Loop/Update/FeedLoop.php b/src/danog/MadelineProto/Loop/Update/FeedLoop.php index 3d2bf69f..1daafe82 100644 --- a/src/danog/MadelineProto/Loop/Update/FeedLoop.php +++ b/src/danog/MadelineProto/Loop/Update/FeedLoop.php @@ -230,7 +230,7 @@ class FeedLoop extends ResumableSignalLoop if ($channelId && !yield $this->API->peer_isset_async($this->API->to_supergroup($channelId))) { $this->API->logger->logger('Skipping update, I do not have the channel id '.$channelId, \danog\MadelineProto\Logger::ERROR); - return; + return false; } break; }