Fix-up f25541e (.to_dict() on patched objects)

This commit is contained in:
Lonami Exo 2018-08-09 11:16:36 +02:00
parent f25541ea6f
commit 6b57dba5e1

View File

@ -642,7 +642,7 @@ def _write_patched(out_dir, namespace_tlobjects):
builder.writeln(AUTO_GEN_NOTICE)
builder.writeln('import struct')
builder.writeln('from .. import types, custom')
builder.writeln('from .. import TLObject, types, custom')
builder.writeln()
for t in tlobjects:
builder.writeln('class {}(custom.{}):', t.class_name,