get_dh_config()¶
- async Client.get_dh_config()¶
Get Diffie-Hellman configuration for end-to-end encryption.
Usable by Users Bots- Parameters:
version (
int, optional) – Current DH config version (0 to always fetch fresh).random_length (
int, optional) – Length of random bytes to generate. Defaults to 256.
- Returns:
DhConfig– The DH configuration.
Example
dh = await app.get_dh_config()