class Telegram::API::Location

Overview

This object represents a point on the map.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(longitude : Float64, latitude : Float64, horizontal_accuracy : Float64 | Nil = nil, live_period : Int32 | Nil = nil, heading : Int32 | Nil = nil, proximity_alert_radius : Int32 | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

This object represents a point on the map.


[View source]

Instance Method Detail

def heading : Int32 | Nil #

Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.


[View source]
def heading=(heading : Int32 | Nil) #

Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.


[View source]
def horizontal_accuracy : Float64 | Nil #

Optional. The radius of uncertainty for the location, measured in meters; 0-1500


[View source]
def horizontal_accuracy=(horizontal_accuracy : Float64 | Nil) #

Optional. The radius of uncertainty for the location, measured in meters; 0-1500


[View source]
def latitude : Float64 #

Latitude as defined by sender


[View source]
def latitude=(latitude : Float64) #

Latitude as defined by sender


[View source]
def live_period : Int32 | Nil #

Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.


[View source]
def live_period=(live_period : Int32 | Nil) #

Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.


[View source]
def longitude : Float64 #

Longitude as defined by sender


[View source]
def longitude=(longitude : Float64) #

Longitude as defined by sender


[View source]
def proximity_alert_radius : Int32 | Nil #

Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.


[View source]
def proximity_alert_radius=(proximity_alert_radius : Int32 | Nil) #

Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.


[View source]