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: 126

  • ID: 0x26cf8950

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

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

Returns

messages.DhConfig – Contains info on cofiguring parameters for key generation by Diffie-Hellman protocol.