diff --git a/pyrogram/raw/core/primitives/vector.py b/pyrogram/raw/core/primitives/vector.py index a2be7b4f..5b2f9ba6 100644 --- a/pyrogram/raw/core/primitives/vector.py +++ b/pyrogram/raw/core/primitives/vector.py @@ -33,7 +33,7 @@ class Vector(bytes, TLObject): def _read(b: BytesIO) -> Union[int, Any]: try: return TLObject.read(b) - except KeyError: + except ValueError: b.seek(-4, 1) return Int.read(b)