Constructs a new MsgContainer.
An array of Message instances to package.
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 list of MTProto Message envelopes packaged inside this container.
The unique 32-bit integer identifier of the parent/abstract type this TL subclass represents.
StaticIDThe unique class ID identifier representing MsgContainer (0x73f1f8dc).
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 container header, message counts, and nested envelopes into a raw binary buffer.
A Buffer containing the serialized representation of the message container.
StaticreadReads, unpacks, and deserializes a MsgContainer from a binary stream.
The BytesIO stream containing the serialized message container.
Unused additional parameters.
A promise resolving to the deserialized MsgContainer instance.
StaticwriteSerializes constructor arguments into a raw binary buffer.
Arguments to be serialized.
An empty Buffer of size 0.
Represents a standard MTProto Message Container (
msg_container).Remarks
A message container is a core MTProto concept allowing multiple independent messages (requests or updates) to be grouped together and sent within a single network transaction. This reduces overhead and enables parallel execution or efficient state synchronization between client and server.