messages.GetDhConfig#

class pyrogram.raw.functions.messages.GetDhConfig#

Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.

Details:
  • Layer: 158

  • ID: 26CF8950

Parameters:
  • version (int 32-bit) – Value of the version parameter from messages.dhConfig, available at the client.

  • random_length (int 32-bit) – Length of the required random sequence.

Returns:

messages.DhConfig