RequestEncryption

class pyrogram.raw.functions.messages.RequestEncryption

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

Details
  • Layer: 126

  • ID: 0xf64daf43

Parameters
  • user_id (InputUser) – User ID.

  • random_id (int 32-bit) – Unique client request ID required to prevent resending. This also doubles as the chat ID.

  • g_a (bytes) – A = g ^ a mod p, see Wikipedia.

Returns

EncryptedChat – Object contains info on an encrypted chat.