Raw.messages.RequestEncryption

Raw.messages.RequestEncryption

Sends a request to start a secret chat to the user.

messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat;
export namespace Raw {
  export namespace messages {
    export class RequestEncryption {
      constructor(params: { userId: Raw.TypeInputUser; randomId: number; gA: Buffer }) {}
    }
  }
}

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

Layer: 185
Constructor ID: 0xf64daf43

Property

  • userId : Raw.TypeInputUser

    User id

  • randomId : number

    Unique client request id required to prevent resending. this also doubles as the chat id.

  • gA : Buffer

    A = g ^ a mod p, see wikipedia

Results

Raw.TypeEncryptedChat