mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 04:51:13 +01:00
Bugfix
This commit is contained in:
parent
5f08fbd9e0
commit
16d76b5c55
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user