diff --git a/pyrogram/raw/core/primitives/vector.py b/pyrogram/raw/core/primitives/vector.py index ed2bbb5d..873a54d0 100644 --- a/pyrogram/raw/core/primitives/vector.py +++ b/pyrogram/raw/core/primitives/vector.py @@ -33,17 +33,13 @@ class Vector(bytes, TLObject): @staticmethod def read_bare(b: BytesIO, size: int) -> Union[int, Any]: if size == 4: - e = int.from_bytes( - b.read(4), - "little" - ) - + e = int.from_bytes(b.read(4), "little") b.seek(-4, 1) - if e in (BoolFalse.ID, BoolTrue.ID): + if e in {BoolFalse.ID, BoolTrue.ID}: return Bool.read(b) - else: - return Int.read(b) + + return Int.read(b) if size == 8: return Long.read(b)