Internal array of slot names for the object.
Name of the class.
Type of the class.
Reference to the constructor of the current class (late static binding).
Unique identifier for the constructor.
Identifier for the parent class (if any).
StaticIDReads 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 current MsgContainer instance into a Buffer.
This method writes the container's ID, the number of messages, and then serializes each contained message in order. The resulting Buffer can be used for transmission or storage.
The serialized representation of the MsgContainer.
StaticreadReads a MsgContainer instance from the provided BytesIO stream.
This method reads the number of messages from the stream, then iteratively reads each Message
and constructs a new MsgContainer containing all the messages.
The BytesIO stream to read from.
Additional arguments (unused).
A promise that resolves to a new MsgContainer instance containing the read messages.
Staticwrite
tgsnake - Telegram MTProto library for javascript or typescript. Copyright (C) 2025 tgsnake https://github.com/tgsnake
THIS FILE IS PART OF TGSNAKE
tgsnake is a free software: you can redistribute it and/or modify it under the terms of the MIT License as published.