GetDhConfigRequest
Only users can use this request. See code examples.
---functions--- messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig
Returns
| messages.DhConfig |
This type can be an instance of either:
| DhConfig | DhConfigNotModified |
Parameters
| version | int | |
| random_length | int |
Known RPC errors
This request can cause 1 known error:
RandomLengthInvalidError | Random length invalid. |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.messages.GetDhConfigRequest(
version=42,
random_length=42
))
print(result.stringify())