Class TdApi.MessageLocation

    • Field Detail

      • livePeriod

        public int livePeriod
        Time relative to the message send date, for which the location can be updated, in seconds.
      • expiresIn

        public int expiresIn
        Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes.
      • heading

        public int heading
        For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown.
      • proximityAlertRadius

        public int proximityAlertRadius
        For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only for the message sender.
      • CONSTRUCTOR

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

      • MessageLocation

        public MessageLocation()
        A message with a location.
      • MessageLocation

        public MessageLocation​(TdApi.Location location,
                               int livePeriod,
                               int expiresIn,
                               int heading,
                               int proximityAlertRadius)
        A message with a location.
        Parameters:
        location - The location description.
        livePeriod - Time relative to the message send date, for which the location can be updated, in seconds.
        expiresIn - Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes.
        heading - For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown.
        proximityAlertRadius - For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only for the message sender.