diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index c173a931..192d6a67 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -447,7 +447,7 @@ def start(format: bool = False): ) read_types += "\n " - read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else None\n ".format( + read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else []\n ".format( arg_name, f", {sub_type.title()}" if sub_type in CORE_TYPES else "", index ) else: