getLocated method

Future<Result<UpdatesBase>> getLocated({
  1. required bool background,
  2. required InputGeoPointBase geoPoint,
  3. int? selfExpires,
})

Get Located.

ID: d348bc44.

Implementation

Future<Result<UpdatesBase>> getLocated({
  required bool background,
  required InputGeoPointBase geoPoint,
  int? selfExpires,
}) async {
  // Preparing the request.
  final request = ContactsGetLocated(
    background: background,
    geoPoint: geoPoint,
    selfExpires: selfExpires,
  );

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

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