Internal_The internal slot list storing serialization field property names.
The canonical string name of this class representation.
The underlying classification type (e.g. request, constructor, function).
A dynamic reference to the current subclass constructor. Enables late static binding for instance methods to access static helper operations.
The unique 32-bit integer identifier (CRC32 checksum) of this TL constructor.
The unique 32-bit integer identifier of the parent/abstract type this TL subclass represents.
Deserializes a binary stream into this specific TLObject instance.
The BytesIO buffer stream containing the serialized TLObject.
Additional arguments passed down to the read parser.
A promise resolving to the parsed instance.
Formats the TLObject into a structured string.
A string starting with the constructor name followed by a pretty JSON payload.
Serializes the current class instance into a raw binary buffer.
Arguments passed down to the writer.
A Buffer containing the serialized representation of this object.
StaticreadReads a 32-bit boolean constructor identifier from the stream and resolves it to a native boolean.
The BytesIO stream to read from.
Unused arguments.
A promise resolving to the decoded boolean value.
StaticwriteSerializes a native JS boolean value into a Buffer using the appropriate constructor.
The boolean value to serialize.
A Buffer containing the serialized BoolTrue or BoolFalse representation.
Dynamic dispatcher class representing MTProto abstract boolean values.
Remarks
In MTProto, boolean values are represented as explicit class instances (
BoolTrueorBoolFalse) rather than raw bits or primitive bytes. This class coordinates dynamic serialization and deserialization between native JavaScript boolean values (true/false) and the corresponding MTProto constructors.Example