Class: TD::Types::InputMessageContent::Location

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_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

#headingInteger

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

Returns:

  • (Integer)

    the current value of heading



13
14
15
# File 'lib/tdlib/types/input_message_content/location.rb', line 13

def heading
  @heading
end

#live_periodInteger

Period for which the location can be updated, in seconds; should be between 60 and 86400 for a live location and 0 otherwise.

Returns:

  • (Integer)

    the current value of live_period



13
14
15
# File 'lib/tdlib/types/input_message_content/location.rb', line 13

def live_period
  @live_period
end

#locationTD::Types::Location

Location to be sent.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/location.rb', line 13

def location
  @location
end

#proximity_alert_radiusInteger

For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled. Can’t be enabled in channels and Saved Messages.

Returns:

  • (Integer)

    the current value of proximity_alert_radius



13
14
15
# File 'lib/tdlib/types/input_message_content/location.rb', line 13

def proximity_alert_radius
  @proximity_alert_radius
end