Raw.messages.SendEncryptedService

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.TypeInputEncryptedChat

    Secret chat id

  • randomId : bigint

    Unique client message id required to prevent message resending

  • data : Buffer

    Tl-serialization of decryptedmessage type, encrypted with a key generated during chat initialization

Results

Raw.messages.TypeSentEncryptedMessage