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 message into a Buffer.
This method writes the message ID, sequence number, length, and body into a BytesIO stream in a specific binary format, then returns the resulting data as a Node.js Buffer.
The serialized message as a Buffer.
StaticreadReads a Message object from the provided BytesIO stream.
This method sequentially reads the message ID, sequence number, and body length from the stream,
then reads the message body of the specified length. It constructs a new Message instance
using the deserialized body and the extracted metadata.
The BytesIO stream to read the message from.
Additional arguments (unused).
A promise that resolves to the deserialized Message object.
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.