invokeWithoutUpdates<T extends TlObject> method

Future<Result<T>> invokeWithoutUpdates<T extends TlObject>({
  1. required TlMethod query,
})

Invoke Without Updates.

ID: bf9459b7.

Implementation

Future<Result<T>> invokeWithoutUpdates<T extends TlObject>({
  required TlMethod query,
}) async {
  // Preparing the request.
  final request = InvokeWithoutUpdates(
    query: query,
  );

  // Invoke and wait for response.
  final response = await invoke(request);

  // Return the result.
  return response._to<T>();
}