messages.getDhConfig
Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.
| Name | Type | Required | Description |
|---|---|---|---|
version | int | Yes | Value of the **version** parameter from [messages.dhConfig](https://core.telegram.org/constructor/messages.dhConfig.md), available at the client |
random_length | int | Yes | Length of the required random sequence |
Responses
messages.DhConfig
MTProto RPC
- 400 · RANDOM_LENGTH_INVALID — Random length invalid.