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.
StaticSIZEThe byte size of a 64-bit long integer (8 bytes).
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 and decodes a 64-bit integer from a binary stream.
The BytesIO stream to read the long integer from.
Set to true to parse as a signed integer; set to false for unsigned. Defaults to true.
Set to true to read in little-endian format; set to false for big-endian. Defaults to true.
The exact number of bytes to read from the stream. Defaults to Long.SIZE.
A promise resolving to the decoded native bigint.
StaticwriteSerializes a 64-bit integer value into a Buffer.
The native bigint value to serialize.
Set to true if the integer is signed; set to false if unsigned. Defaults to true.
Set to true to write in little-endian format; set to false for big-endian. Defaults to true.
A Buffer containing the 8-byte representation of the 64-bit integer.
Serializer and deserializer for 64-bit (8-byte) signed or unsigned integers.
Remarks
In MTProto, 64-bit integers are heavily used for message IDs, session IDs, chat IDs, and salt values. Because standard JS numbers only support safe integers up to 53 bits, this class operates on native JavaScript
bigintvalues.