Raw.messages.SendEncryptedFile

Raw.messages.SendEncryptedFile

Sends a message with a file attachment to a secret chat

messages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage;
export namespace Raw {
  export namespace messages {
    export class SendEncryptedFile {
      constructor(params: {
        silent?: boolean;
        peer: Raw.TypeInputEncryptedChat;
        randomId: bigint;
        data: Buffer;
        file: Raw.TypeInputEncryptedFile;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x5559481d

Property

  • silent : boolean or undefined

    Whether to send the file without triggering a notification

  • peer : Raw.TypeInputEncryptedChat

    Secret chat id

  • randomId : bigint

    Unique client message id necessary to prevent message resending

  • data : Buffer

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

  • file : Raw.TypeInputEncryptedFile

    File attachment for the secret chat

Results

Raw.messages.TypeSentEncryptedMessage