mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Fix bug where booleans were always serialized as false
This commit is contained in:
parent
c134d9ba27
commit
195bba6f21
|
@ -496,7 +496,9 @@ class TLGenerator:
|
||||||
|
|
||||||
elif 'Bool' == arg.type:
|
elif 'Bool' == arg.type:
|
||||||
# 0x997275b5 if boolean else 0xbc799737
|
# 0x997275b5 if boolean else 0xbc799737
|
||||||
builder.write(r"b'\xb5ur\x99' if {} else b'7\x97y\xbc'")
|
builder.write(
|
||||||
|
r"b'\xb5ur\x99' if {} else b'7\x97y\xbc'".format(name)
|
||||||
|
)
|
||||||
|
|
||||||
elif 'true' == arg.type:
|
elif 'true' == arg.type:
|
||||||
pass # These are actually NOT written! Only used for flags
|
pass # These are actually NOT written! Only used for flags
|
||||||
|
|
Loading…
Reference in New Issue
Block a user