Raw.messages.SendEncrypted

Raw.messages.SendEncrypted

Sends a text message to a secret chat.

messages.sendEncrypted#44fa7a15 flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;
export namespace Raw {
  export namespace messages {
    export class SendEncrypted {
      constructor(params: {
        silent?: boolean;
        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: 0x44fa7a15

Property

  • silent : boolean or undefined

    Send encrypted message without a notification

  • peer : Raw.TypeInputEncryptedChat

    Secret chat id

  • randomId : bigint

    Unique client message id, necessary to avoid message resending

  • data : Buffer

    Tl-serialization of decryptedmessage type, encrypted with a key that was created during chat initialization

Results

Raw.messages.TypeSentEncryptedMessage