Constructs a new TLObject instance, initializing slots and late-bound constructors.
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, decodes, and aligns a variable-length byte array from a binary stream.
The BytesIO stream to read the byte array from.
Unused additional parameters.
A promise resolving to the decoded Node.js Buffer.
StaticwriteSerializes a Node.js Buffer value into a length-prefixed and padded MTProto binary structure.
The input Buffer to serialize.
A Buffer containing the formatted prefix, data, and padding bytes.
Serializer and deserializer for raw, variable-length byte arrays.
Remarks
In MTProto, raw byte arrays are serialized with a custom length-prefix scheme:
0-3padding bytes to align the entire block to a 4-byte boundary.254(0xfe).0-3padding bytes to align the entire block to a 4-byte boundary.