🐛 Fix generate error of vector

🐛 Add missing ID in future_salts.py
This commit is contained in:
Sam 2022-01-11 22:05:36 +08:00
parent c7da4a8495
commit ec9e92d6d8
Signed by: sam01101
GPG Key ID: 42D7B6D13FF5E611
2 changed files with 2 additions and 1 deletions

View File

@ -447,7 +447,7 @@ def start(format: bool = False):
)
read_types += "\n "
read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else []\n ".format(
read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else None\n ".format(
arg_name, f", {sub_type.title()}" if sub_type in CORE_TYPES else "", index
)
else:

View File

@ -48,6 +48,7 @@ class FutureSalts(TLObject):
def write(self, *args: Any) -> bytes:
b = BytesIO()
b.write(Int(self.ID, False))
b.write(Long(self.req_msg_id))
b.write(Int(self.now))