Raw.DecryptedMessageLayer17
Sets the layer number for the contents of an encrypted message.
decryptedMessageLayer#1be31789 random_bytes:bytes layer:int in_seq_no:int out_seq_no:int message:DecryptedMessage = DecryptedMessageLayer;
export namespace Raw {
export class DecryptedMessageLayer17 {
constructor(params: {
randomBytes: Buffer;
layer: number;
inSeqNo: number;
outSeqNo: number;
message: Raw.TypeDecryptedMessage;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x1be31789
Property
randomBytes
: BufferSet of random bytes to prevent content recognition in short encrypted messages.clients are required to check that there are at least 15 random bytes included in each message. messages with less than 15 random bytes must be ignored.parameter moved here from decryptedmessage in layer 17.
layer
: numberLayer number. mimimal value - 17 (the layer in which the constructor was added).
inSeqNo
: number2x the number of messages in the sender’s inbox (including deleted and service messages), incremented by 1 if current user was not the chat creatorparameter added in layer 17.
outSeqNo
: number2x the number of messages in the recipient’s inbox (including deleted and service messages), incremented by 1 if current user was the chat creatorparameter added in layer 17.
message
: Raw.TypeDecryptedMessageThe content of message itself