Class TdApi.SetLocation

  • Enclosing class:
    TdApi

    public static class TdApi.SetLocation
    extends TdApi.Function
    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 Detail

      • location

        public TdApi.Location location
        The new location of the user.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SetLocation

        public SetLocation()
        Default constructor for a function, which 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)
        Creates a function, which 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 - The new location of the user.