diff --git a/src/danog/MadelineProto/MTProtoTools/CallHandler.php b/src/danog/MadelineProto/MTProtoTools/CallHandler.php index adde6575..a970f91f 100644 --- a/src/danog/MadelineProto/MTProtoTools/CallHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/CallHandler.php @@ -150,8 +150,8 @@ trait CallHandler $response_tries = $this->settings['max_tries']['response'] + 1; if ($last_recv) { $additional = (int) floor((time() - $last_recv) / 10); - if ($additional > $this->settings['max_tries']['response']*2) { - $additional = $this->settings['max_tries']['response']*2; + if ($additional > $this->settings['max_tries']['response'] * 2) { + $additional = $this->settings['max_tries']['response'] * 2; } $response_tries += $additional; } diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index 01aec732..ecf8df05 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -717,7 +717,7 @@ trait PeerHandler } $res['participants'][$participant['user_id']] = $newres; } - $this->logger->logger("Fetched ".count($gres['participants'])." channel participants with filter $filter, query $q, offset $offset, limit $limit, hash $hash: ".($cached ? 'cached' : 'not cached').', '.($offset + count($gres['participants'])).' participants out of '.$gres['count'].', in total fetched '.count($res['participants']).' out of '.$total_count); + $this->logger->logger('Fetched '.count($gres['participants'])." channel participants with filter $filter, query $q, offset $offset, limit $limit, hash $hash: ".($cached ? 'cached' : 'not cached').', '.($offset + count($gres['participants'])).' participants out of '.$gres['count'].', in total fetched '.count($res['participants']).' out of '.$total_count); $offset += count($gres['participants']); } while (count($gres['participants'])); diff --git a/tests/testing.php b/tests/testing.php index c8a479b0..6fb05164 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -77,7 +77,6 @@ if ($MadelineProto->get_self() === false) { \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::ERROR); \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::FATAL_ERROR); - /** * A small example message to use for tests. */