🐛 Fix generate error of vector
🐛 Add missing ID in future_salts.py
This commit is contained in:
parent
c7da4a8495
commit
ec9e92d6d8
@ -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:
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user