getDhConfig method
Get Dh Config.
ID: 26cf8950
.
Implementation
Future<Result<MessagesDhConfigBase>> getDhConfig({
required int version,
required int randomLength,
}) async {
// Preparing the request.
final request = MessagesGetDhConfig(
version: version,
randomLength: randomLength,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<MessagesDhConfigBase>();
}