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.TypeInputUserUser id
randomId
: numberUnique client request id required to prevent resending. this also doubles as the chat id.
gA
: BufferA = g ^ a mod p, see wikipedia