1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 04:51:13 +01:00
This commit is contained in:
Daniil Gentili 2023-01-26 19:39:55 +01:00
parent 5f08fbd9e0
commit 16d76b5c55
2 changed files with 6 additions and 4 deletions

View File

@ -42,10 +42,12 @@ final class CheckLoop extends Loop
*/
protected function loop(): ?float
{
if (!$this->connection->new_outgoing || !$this->connection->hasPendingCalls()) {
if (!$this->connection->new_outgoing) {
return self::PAUSE;
}
$last_msgid = $this->connection->msgIdHandler->getMaxId(true);
if (!$this->connection->hasPendingCalls()) {
return $this->timeout;
}
if ($this->shared->hasTempAuthKey()) {
$full_message_ids = $this->connection->getPendingCalls();
foreach (\array_chunk($full_message_ids, 8192) as $message_ids) {

View File

@ -1673,9 +1673,9 @@ final class MTProto implements TLCallback, LoggerGetter
foreach ($userOrId as $k => &$peer) {
try {
$peer = ($this->getInfo($peer))['bot_api_id'];
if ($peer === 101374607) {
/*if ($peer === 101374607) {
unset($userOrId[$k]);
}
}*/
} catch (Throwable $e) {
unset($userOrId[$k]);
$this->logger("Could not obtain info about report peer $peer: $e", Logger::FATAL_ERROR);