Class: TD::Types::MessageContent::Location

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/location.rb

Overview

A message with a location.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#expires_inInteger

Left time for which the location can be updated, in seconds. Update::MessageContent is not sent when this field changes.

Returns:

  • (Integer)

    the current value of expires_in



15
16
17
# File 'lib/tdlib/types/message_content/location.rb', line 15

def expires_in
  @expires_in
end

#headingInteger

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

Returns:

  • (Integer)

    the current value of heading



15
16
17
# File 'lib/tdlib/types/message_content/location.rb', line 15

def heading
  @heading
end

#live_periodInteger

Time relative to the message send date, for which the location can be updated, in seconds.

Returns:

  • (Integer)

    the current value of live_period



15
16
17
# File 'lib/tdlib/types/message_content/location.rb', line 15

def live_period
  @live_period
end

#locationTD::Types::Location

The location description.

Returns:



15
16
17
# File 'lib/tdlib/types/message_content/location.rb', line 15

def location
  @location
end

#proximity_alert_radiusInteger

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.

Returns:

  • (Integer)

    the current value of proximity_alert_radius



15
16
17
# File 'lib/tdlib/types/message_content/location.rb', line 15

def proximity_alert_radius
  @proximity_alert_radius
end