Do not throw exceptions on unknown messages

This commit is contained in:
Daniil Gentili 2019-09-14 16:16:56 +02:00
parent cf9a30521a
commit 3bdcaa1f2c

View File

@ -291,7 +291,8 @@ trait ResponseHandler
$this->logger->logger('No', \danog\MadelineProto\Logger::VERBOSE);
}
throw new \danog\MadelineProto\ResponseException('Dunno how to handle '.PHP_EOL.\var_export($this->incoming_messages[$current_msg_id]['content'], true));
$this->logger->logger('Dunno how to handle '.PHP_EOL.\var_export($this->incoming_messages[$current_msg_id]['content'], true), \danog\MadelineProto\Logger::FATAL_ERROR);
unset($this->new_incoming[$current_msg_id]);
break;
}
break;