mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix patched objects missing CONSTRUCTOR_ID/SUBCLASS_OF_ID
This commit is contained in:
parent
db8bea3968
commit
497c2144f2
|
@ -648,6 +648,10 @@ def _write_patched(out_dir, namespace_tlobjects):
|
|||
builder.writeln('class {}(custom.{}):', t.class_name,
|
||||
PATCHED_TYPES[t.fullname])
|
||||
|
||||
builder.writeln('CONSTRUCTOR_ID = {:#x}', t.id)
|
||||
builder.writeln('SUBCLASS_OF_ID = {:#x}',
|
||||
crc32(t.result.encode('ascii')))
|
||||
|
||||
_write_to_dict(t, builder)
|
||||
_write_to_bytes(t, builder)
|
||||
_write_from_reader(t, builder)
|
||||
|
|
Loading…
Reference in New Issue
Block a user