diff --git a/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php b/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php index 30b4e403a..9bf66b36c 100644 --- a/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php +++ b/src/danog/MadelineProto/MTProtoTools/ReferenceDatabase.php @@ -97,11 +97,11 @@ final class ReferenceDatabase implements TLCallback } public function init(): void { + $this->initDb($this->API); if ($this->v === 0) { $this->db->clear(); $this->v = self::V; } - $this->initDb($this->API); } public function getMethodAfterResponseDeserializationCallbacks(): array {