Module tdlight.api

Class TdApi.SetLocation

Enclosing class:
TdApi

public static final class TdApi.SetLocation extends TdApi.Function<TdApi.Ok>
Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer. Returns Ok
  • Field Details

  • Constructor Details

    • SetLocation

      public SetLocation()
      Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer. Returns Ok
    • SetLocation

      public SetLocation(TdApi.Location location)
      Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer. Returns Ok
      Parameters:
      location - Location The new location of the user.
    • SetLocation

      public SetLocation(DataInput input) throws IOException
      Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer. Returns Ok
      Throws:
      IOException
  • Method Details