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. If 0, then the location can’t be updated anymore. The update Update::MessageContent is not sent when this field changes.

Returns:

  • (Integer)

    the current value of expires_in



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

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



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

def heading
  @heading
end

#live_periodInteger

Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever.

Returns:

  • (Integer)

    the current value of live_period



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

def live_period
  @live_period
end

#locationTD::Types::Location

The location description.

Returns:



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

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 to the message sender.

Returns:

  • (Integer)

    the current value of proximity_alert_radius



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

def proximity_alert_radius
  @proximity_alert_radius
end