diff --git a/telethon_generator/tl_generator.py b/telethon_generator/tl_generator.py index 861261e6..84598999 100644 --- a/telethon_generator/tl_generator.py +++ b/telethon_generator/tl_generator.py @@ -300,15 +300,17 @@ class TLGenerator: # Write the .to_bytes() function builder.writeln('def to_bytes(self):') - builder.write("return b''.join((") + builder.writeln("return b''.join((") + builder.current_indent += 1 # First constructor code, we already know its bytes - builder.write('{},'.format(repr(struct.pack('