Constructs a new UpdateSecretChatMessage wrapper.
Initial parameter values.
Internal_The original raw Telegram encrypted update instance.
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 decrypted message or service message payload.
The queue timestamp (QTS) parameter indicating the sequence order of the update.
The unique 32-bit integer identifier of the parent/abstract type this TL subclass represents.
The original raw encrypted message container received from Telegram.
The raw original encrypted update object.
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.
StaticgenerateDecrypts a raw encrypted update and generates a fully decrypted UpdateSecretChatMessage wrapper.
The secret chat context class implementing TypeTGenerate.
The raw UpdateNewEncryptedMessage containing the encrypted payload.
The secret chat session manager used to decrypt the message bytes.
A promise resolving to the decrypted UpdateSecretChatMessage instance.
This static factory determines whether the encrypted message is a standard user message or
a service message (e.g. key exchange requests), calls secretChat.decrypt() to decrypt the body,
constructs the appropriate wrapper class (SecretChatMessage or SecretChatMessageService),
and returns the finalized update object.
StaticreadReads and deserializes a generic TLObject from a binary stream.
The BytesIO buffer stream containing the serialized TLObject.
Additional arguments passed down to the resolved subclass's static read implementation.
A promise resolving to the parsed class instance.
StaticwriteSerializes constructor arguments into a raw binary buffer.
Arguments to be serialized.
An empty Buffer of size 0.
Represents a decrypted secret chat message update wrapper.
Remarks
This modified update structure wraps raw incoming Telegram encrypted updates (
UpdateNewEncryptedMessage) and replaces the encrypted message payload with its fully-decrypted message or service structure. This simplifies message handling by eliminating manual decrypt stages.