diff --git a/pyrogram/api/core/primitives/vector.py b/pyrogram/api/core/primitives/vector.py index cdb90091..60890ae6 100644 --- a/pyrogram/api/core/primitives/vector.py +++ b/pyrogram/api/core/primitives/vector.py @@ -35,7 +35,7 @@ class Vector(Object): def __new__(cls, value: list, t: Object = None) -> bytes: return b"".join( - [Int(cls.ID), Int(len(value))] + [Int(cls.ID, False), Int(len(value))] + [ t(i) if t else i.write()