messages.DhConfig
- class pyrogram.raw.types.messages.DhConfig
New set of configuring parameters.
Constructor of
DhConfig.- Details:
Layer:
223ID:
2C221EDD
- Parameters:
g (
int32-bit) – New value prime, see Wikipediap (
bytes) – New value primitive root, see Wikipediaversion (
int32-bit) – Version of set of parametersrandom (
bytes) – Random sequence of bytes of assigned length
- Functions:
This object can be returned by 1 function.
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
├── g →
int├── p →
bytes├── version →
int└── random →
bytesExample
DhConfig(
g=0,
p=b"data",
version=0,
random=b"data",
)