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, aligns, and decodes a UTF-8 string from a binary stream.
The BytesIO stream containing the serialized string.
Unused additional parameters.
A promise resolving to the decoded native JavaScript string.
StaticwriteSerializes a JavaScript string into a UTF-8 length-prefixed and padded Buffer.
The input string to serialize.
A Buffer containing the encoded string.
Serializer and deserializer for UTF-8 encoded strings.
Remarks
In MTProto, strings are treated as standard UTF-8 text and are packed/aligned using the same length-prefix and padding logic as the Bytes primitive class.