Skip to content

Serialization bug fixes

Pre-release
Pre-release
Compare
Choose a tag to compare
@Lonami Lonami released this 29 Sep 11:18

Two bug fixes, one of them quite important, related to the serialization. Every object or request that had to serialize a True/False type was always being serialized as false!

Another bug that didn't allow you to leave as None flag parameters that needed a list has been fixed.

Other internal changes include a somewhat more readable .to_bytes() function and pre-computing the flag instead using bit shifting. The TLObject.constructor_id has been renamed to TLObject.CONSTRUCTOR_ID, and .subclass_of_id is also uppercase now.