Internal array of slot names for the object.
The identifier of the chat where the message was sent.
Name of the class.
Type of the class.
Reference to the constructor of the current class (late static binding).
Unique identifier for the constructor.
The Unix timestamp indicating when the message was sent.
The encrypted file associated with the message.
The decrypted message content, which can be one of several types.
A unique identifier for the message, represented as a bigint.
Identifier for the parent class (if any).
Reads data from the provided BytesIO instance and processes it using the associated class's read method.
The BytesIO instance containing the data to be read.
Additional arguments to be passed to the class's read method.
A promise that resolves with the result of the read operation.
Serializes the provided arguments using the associated class's write method.
The arguments to be serialized.
The resulting Buffer after serialization.
StaticreadReads a TLObject from the provided BytesIO stream.
This static method reads a 32-bit unsigned integer (interpreted as the object ID)
from the stream, logs the reading operation, dynamically resolves the corresponding
TLObject class, and delegates the reading process to that class's read method.
The BytesIO stream to read the TLObject from.
Additional arguments to pass to the resolved TLObject's read method.
A Promise that resolves to the deserialized TLObject instance.
Staticwrite
Represents a secret chat message with encrypted content.
Remarks
This class extends
TLObjectand is used to encapsulate the details of a message in a secret chat, including its unique identifier, chat context, timestamp, message content, and associated encrypted file.Example