Raw.messages.SendEncryptedService
Sends a service message to a secret chat.
messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;
export namespace Raw {
export namespace messages {
export class SendEncryptedService {
constructor(params: { peer: Raw.TypeInputEncryptedChat; randomId: bigint; data: Buffer }) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x32d439a4
Property
peer
: Raw.TypeInputEncryptedChatSecret chat id
randomId
: bigintUnique client message id required to prevent message resending
data
: BufferTl-serialization of decryptedmessage type, encrypted with a key generated during chat initialization