messages.DhConfig

class pyrogram.raw.types.messages.DhConfig

New set of configuring parameters.

Constructor of DhConfig.

Details:
  • Layer: 223

  • ID: 2C221EDD

Parameters:
  • g (int 32-bit) – New value prime, see Wikipedia

  • p (bytes) – New value primitive root, see Wikipedia

  • version (int 32-bit) – Version of set of parameters

  • random (bytes) – Random sequence of bytes of assigned length

Functions:

This object can be returned by 1 function.

messages.GetDhConfig

Returns configuration parameters for Diffie-Hellman key generation.

TL Schema

messages.dhConfig#2c221edd
g:int
p:bytes
version:int
random:bytes

= messages.DhConfig

Parameter Tree

DhConfig
├── gint
├── pbytes
├── versionint
└── randombytes

Example

DhConfig(
    g=0,
    p=b"data",
    version=0,
    random=b"data",
)